Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: how to write a perl one liner?

by happy.barney (Friar)
on Mar 08, 2011 at 08:15 UTC ( [id://891968]=note: print w/replies, xml ) Need Help??


in reply to how to write a perl one liner?

local @ARGV = ('deletefiles.txt'); unlink or warn "$_: $!\n" for <>;

Replies are listed 'Best First'.
Re^2: how to write a perl one liner?
by perl_mystery (Beadle) on Mar 08, 2011 at 08:32 UTC

    Where are we running "p4 delete" in the above code

      so replace unlink with your code :-) or better, follow ikegami's advice
      in the ,

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2025-07-12 20:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.