[tpm] chomp problem
Omid Gulban
omgulban at yahoo.ca
Fri Feb 4 12:42:21 PST 2011
Hello All,
I have a simple script shown below:
on windows xp platform.
use warnings;
use strict;
while (<DATA>) {
chomp $_;
print "$_";
}
__END__
a
b
c
d
e
f
g
h
Why do I get an output that looks like this:
a
ab
bc
cd
de
ef
fg
ghh
I expected to see:
abcdefg
Thanks
O
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/toronto-pm/attachments/20110204/f5dbf4e1/attachment.html>
More information about the toronto-pm
mailing list