go ahead... be a heretic | |
PerlMonks |
Re: Onliner magic to remove filesby LanX (Saint) |
on Dec 23, 2014 at 20:07 UTC ( [id://1111225]=note: print w/replies, xml ) | Need Help?? |
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 ☆☆☆☆ :)
In Section
Seekers of Perl Wisdom
|
|