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.
  • Comment on Re^2: System Command mv not working - Require a solution without modules.

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.