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

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

by G Nagasri Varma (Novice)
on Jan 28, 2016 at 08:47 UTC ( [id://1153825]=note: print w/replies, xml ) Need Help??


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

I tried chomp function "chomp($lines$i);" but it throws me the error Illegal division by zero at ./data.pl line 13, <DATA> line 3.

Replies are listed 'Best First'.
Re^3: System Command mv not working - Require a solution without modules.
by Corion (Patriarch) on Jan 28, 2016 at 08:56 UTC

    Please post the relevant code and please use <code>...</code> tags to mark it so it renders and downloads nicely.

    The problem is mostly a syntax error in your code where Perl interprets a file path as a division of two values. This mostly happens when you omit a closing quote on a string.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-03-28 21:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found