Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: perl -pi -e s'/^\s+//'g $file

by Anonymous Monk
on Apr 12, 2011 at 18:49 UTC ( #899027=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ perl -MO=Deparse -p -i.orig -e "s/foo/bar/; ... "
    BEGIN { $^I = ".orig"; }
    ...
        die "-p destination: $!\n" unless print $_;
    }
    -e syntax OK
    
  2. or download this
    #!/usr/bin/perl --
    
    ...
            die "-p destination: $!\n" unless print $_;
        }
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://899027]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (2)
As of 2018-11-17 04:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My code is most likely broken because:
















    Results (202 votes). Check out past polls.

    Notices?