Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

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

by Anonymous Monk
on Nov 23, 2012 at 07:34 UTC ( #1005223=note: print w/replies, xml ) Need Help??


in reply to Re^3: perl -pi -e s'/^\s+//'g $file
in thread perl -pi -e s'/^\s+//'g $file

Actually ARGV::readonly isn't needed with -i.orig (or -pi.orig) because perl does a stat first

$ perl -pe 1 "echo shabba|" shabba $ perl -Tpe 1 "echo shabba|" Insecure $ENV{PATH} while running with -T switch. $ perl -Tpi.orig -e 1 "echo shabba|" Can't open echo shabba|: Invalid argument.

Happens around http://perl5.git.perl.org/perl.git/blob?f=doio.c#l897

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1005223]
help
Chatterbox?
[ambrus]: I don't much like highlighting matching parenthesis, because I've had some bad experiences with distracting implementations of that.

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (11)
As of 2017-02-27 13:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (385 votes). Check out past polls.