Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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

by 2teez (Vicar)
on Jan 28, 2016 at 08:57 UTC ( #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
Node Status?
node history
Node Type: note [id://1153830]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2021-04-15 23:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?