in reply to Removing leading whitespace from a file?

see Editing Files In Place
{ local $^I = ".bak"; local *ARGV; @ARGV = "test.txt"; while (<>) { s/^\s+//; print; } }

--
my $chainsaw = 'Perl';