in reply to Re: Rewriting into file
in thread Rewriting into file

After you learn to manually do the 4-step process, then you can use a shortcut for that process that perl provides:

Its best not to use that shortcut; it has caveats, and it can be dangerous, see magic-diamond <> behavior -- WHAT?!

I would use Iterator::Diamond

Or with ARGV::readonly like Re^2: perl -pi -e s'/^\s+//'g $file

Replies are listed 'Best First'.
Re^3: Rewriting into file
by pr09 (Novice) on Jun 21, 2011 at 04:51 UTC
    Hi All, I completed the above task. Thanks All for the help.