Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Re: Re: Move or rename script

by IOrdy (Friar)
on May 24, 2002 at 15:58 UTC ( [id://169125]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Move or rename script
in thread Move or rename script

use backticks `` to make your system calls. (sorry I cant find a good link)

any arguments can just be passed into the backtick.

i.e. a recursive list of files that could be split with "\n" into an array.<br /
@foo = `find $path -name $ftype`;

And for move:

$where = '/home/iordy/public_html/';
$what = '/home/iordy/whatever.pl';
@foo = `mv $args $what $where`;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (7)
As of 2024-04-18 09:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found