http://www.perlmonks.org?node_id=62369


in reply to Re: (jeffa) Re: Perl Certifications ??
in thread Perl Certifications ??

Let me submit a dirty trick question for the test:

What are the contents of $foo after the following:

my $foo = "bar\n"; undef $/; chomp $foo;
A) bar\n
B) bar
C) bar\r
D) ba

Jeff

R-R-R--R-R-R--R-R-R--R-R-R--R-R-R--
L-L--L-L--L-L--L-L--L-L--L-L--L-L--