;#sc#
}#sc#
+==> c068.in <==
+my $var = $^;
+my @list = @^;
+my %hash = %^;
+my $glob = *^;
+my $call = &^;
+my $aa = $^ ? "defined" : "not defined";
+my $bb = &^ ? "none" : "ok";
+
==> c103.in <==
print $l<3? $_ : $l & 4 ? --$_ ? $_ : "No more" : $l & 3 ? $_ > 1 ? "if one of those" : "if that" : "e", " cop", $_ ^ 1 ? "ies " : "y ", $l ^ 3 ? $l & 2 ? "w" : $l & 4 ? "z" : "y" : "x";
print STDERR < BLABLA>; # ok prints the word 'BLABLA'
my $self = shift;
# Starting sub call after seeing an '&'
-
if ( $tok =~ /^[\$\w]/ ) { # alphanumeric ..
$id_scan_state = $scan_state_COLON; # now need ::
$saw_alpha = 1;
# Special variable (c066)
$identifier .= $tok;
- $type = '&';
+ $type = 'i';
- # There may be one more character, not a space, after the ^
+ # To be a special $^ variable, there may be one more character,
+ # not a space, after the ^
my $next1 = $rtokens->[ $i + 1 ];
my $chr = substr( $next1, 0, 1 );
if ( $is_special_variable_char{$chr} ) {
}
else {
- # it is &^
+ # It is &^. This is parsed by perl as a call to sub '^',
+ # even though it would be difficult to create a sub '^'.
+ # So we mark it as an identifier (c068).
$id_scan_state = EMPTY_STRING;
}
}