Don't ask to ask, just ask | |
PerlMonks |
Re: calculating length of the stringby vinoth.ree (Monsignor) |
on Jul 29, 2015 at 09:50 UTC ( [id://1136731]=note: print w/replies, xml ) | Need Help?? |
++Eily,
As you read the file content each line ends with newline character '\n', perl has function chomp() it removes characters at the end of strings corresponding to the $INPUT_LINE_SEPARATOR ($/), When given no arguments, the operation is performed on $_.
All is well. I learn by answering your questions...
In Section
Seekers of Perl Wisdom
|
|