Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: System Command mv not working - Require a solution without modules.

by 2teez (Vicar)
on Jan 28, 2016 at 08:57 UTC ( [id://1153830]=note: print w/replies, xml ) Need Help??


in reply to System Command mv not working - Require a solution without modules.

Hi G Nagasri Varma,

There are several things one could point out to you namely:

  • Use <code> </code> around your code
  • use warnings;
    use strict; in your code
  • Your open function should use the 3 arguments option
  • Change your C/C++ for type. Use perl's like so:  foreach () {...}
    OR for () {...}
  • Lastly, instead of using system(..) or backticks `` or qx/../
    use module File::Copy qw/move/ It comes installed with your Perl, for easy portability

If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2024-04-25 04:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found