#!./perl -i.inplace
# note the extra switch, for the test below
BEGIN {
chdir 't' if -d 't';
}
use Config;
use Errno;
$_ = 1;
}
foo(1);
"abc" =~ /b/;
$OFS = " ";
$ORS = "\n";
{
} else {
}
$| = 1;
print 'ok', '7';
# since $| is 1, this should be true
# chomp is true because $ORS is "\n"
}
@foo = (8, 9);
is( $foo[0], 8, '$"' );
undef $OUTPUT_RECORD_SEPARATOR;
# may be non-portable
{
local $INPUT_RECORD_SEPARATOR = "\n\n";
}
my %hash;
$SUBSCRIPT_SEPARATOR = '|';
$hash{d,e,f} = 1;
$SUBSEP = ',';
$hash{'a', 'b', 'c'} = 1;
my @keys = sort keys %hash;
package B;
use English;
"abc" =~ /b/;
{
my $s = "xyz";
$s =~ s/y/t$MATCH/;
}
package C;
use English qw( -no_match_vars ) ;
"abc" =~ /b/;
__END__
This is a line.
This is a paragraph.
This is a second paragraph.
It has several lines.