There's more than one way to do things | |
PerlMonks |
Re: In my perl script one of the variable it is giving an extra dot.by ikegami (Patriarch) |
on May 26, 2022 at 18:18 UTC ( [id://11144204]=note: print w/replies, xml ) | Need Help?? |
$file =~ s{.}{}g does not do what you say. . means "a character that's not a line feed", so that removes every character that's not a line feed from the string in $file.
In Section
Seekers of Perl Wisdom
|
|