Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: unix commands and perl modules war

by parv (Priest)
on Apr 07, 2006 at 16:26 UTC ( #541898=note: print w/replies, xml ) Need Help??

in reply to unix commands and perl modules war

I haven't noticed a module to do the work of *mv* across file system mount points. If anybody knows of one (besides issuing a call to *mv*), please let me know.

Replies are listed 'Best First'.
Re^2: unix commands and perl modules war
by fergal (Chaplain) on Apr 07, 2006 at 17:27 UTC
    Worse still, there's no flag you can give mv to stop it moving across file systems!
    "This is the Unix philosophy:
        Write programs that do one thing and do it well.
        Write programs to work together.
        Write programs to handle text streams, because that is a universal interface." 
    (my bolding)

    So mv is a wrapper around the rename() system call but it also includes cp -r and rm -r whether you want them or not. It wouldn't be so bad if it was a reversible operation but if any of your files were hard links then you're screwed.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://541898]
[atcroft]: abner: Do you mean something like SELECT `foo`, `bar` FROM `table_name' WHERE (( `foo` = "asdf" ) OR ( `bar` = 'asdw' )); Or something else?
[abner]: yes. i am familiar with mysql but ignorant about how to get around the fact that placeholders can only represent single scalar values.
[abner]: my $sth = $dbh->prepare(' SELECT * FROM charge WHERE cpt = ?') or die "Couldn't prepare statement: " . $dbh->errstr;

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2017-01-24 03:46 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (201 votes). Check out past polls.