Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Why does system("mv $x $y") not work when it works at the command line?

by sectokia (Pilgrim)
on Feb 03, 2023 at 04:51 UTC ( [id://11150114]=note: print w/replies, xml ) Need Help??


in reply to Why does system("mv $x $y") not work when it works at the command line?

The problem is likely related to the command line. I would suggest you do the move in perl:

use File::Copy; move('source.file','dest.file')

See: https://metacpan.org/pod/File::Copy

  • Comment on Re: Why does system("mv $x $y") not work when it works at the command line?
  • Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-04-20 01:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found