Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: File::Copy versus cp/mv

by vek (Prior)
on Oct 01, 2003 at 19:15 UTC ( [id://295730]=note: print w/replies, xml ) Need Help??


in reply to File::Copy versus cp/mv

While there might be some good reasons to use the Unix toolkit I've seen people shell out for the simple reason that they had not taken the time to figure out you can do it in Perl.

I've pointed out to a cowoker that you really don't need to do this...

my @files = `ls *`;
...when this would suffice:
my @files = <*>;

I've also seen the following crop up from time to time:

my $now = `date`; system("rm testfile");

-- vek --

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-04-25 10:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found