Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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

by Anonymous Monk
on Mar 22, 2012 at 10:55 UTC ( #960975=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    local @ARGV = @_;
    require ARGV::readonly;
    ARGV::readonly->import; ## THIS!!!
    
  2. or download this
    local @ARGV = @_;
    # Tom Christiansen in Message-ID: <24692.1217339882@chthon>
    # reccomends essentially the following:
    ...
       s/^/< /;        # force open for input
       $_.=qq/\0/;    # trailing whitespace preserved & pipes forbidden
    };
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://960975]
help
Chatterbox?
and the rats come out to play...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2018-07-20 09:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (427 votes). Check out past polls.

    Notices?