{ local $^I = ".bak"; local *ARGV; @ARGV = "test.txt"; while (<>) { s/^\s+//; print; } }
--
my $chainsaw = 'Perl';
In reply to Re: Removing leading whitespace from a file?
by greenFox
in thread Removing leading whitespace from a file?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |