[COLOR=blue][kirsle@eternity ~]$[/color] cat end.pl
print "Testing comments in the END section\n";
while (<END>) {
print;
}
__END__
Hello world!
Hello mars!
print "test"; # prints "test"
my $string = "#5";
my $regexp =~ s/#/pound/ig;
[COLOR=blue][kirsle@eternity ~]$[/color] perl end.pl
Testing comments in the END section
[COLOR=blue][kirsle@eternity ~]$[/color] cat data.pl
print "Testing comments in the DATA section\n";
while (<DATA>) {
print;
}
__DATA__
Hello world!
Hello mars!
print "test"; # prints "test"
my $string = "#5";
my $regexp =~ s/#/pound/ig;
[COLOR=blue][kirsle@eternity ~]$[/color] perl data.pl
Testing comments in the DATA section
Hello world!
Hello mars!
print "test"; # prints "test"
my $string = "#5";
my $regexp =~ s/#/pound/ig;