Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Onliner magic to remove files

by LanX (Saint)
on Dec 23, 2014 at 20:07 UTC ( [id://1111225]=note: print w/replies, xml ) Need Help??


in reply to Onliner magic to remove files

See glob for the meaning of <*>.

Both unlink and stat operate on $_ which holds the file found by glob.

The boolean < is mysterious for me, I can only only guess that a warning is triggered in case of error.

Alternatively the evaluation of this boolean to raise the error got lost while copying.

Most probably cargo cult.

Cheers Rolf

(addicted to the Perl Programming Language and ☆☆☆☆ :)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (6)
As of 2024-03-29 14:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found