jimson has asked for the wisdom of the Perl Monks concerning the following question:
It's actually routine job. But today I noticed something special.
open(FH1, "test.txt") || die ("Failed to open!\n"); my $line; while ($line = <FH1>) { chomp($line); print "It was $line!!!\n"; }
when using a test.file like this:
01234567
01234567
01234567
-----------------
The code prints special things like:
!!!was 01234567
!!!was 01234567
!!!was 01234567
-----------------
Just can not understand why the "!!!" should be added to overwrite the string head "It ..."
Back to
Seekers of Perl Wisdom