http://www.perlmonks.org?node_id=1010574


in reply to Re: script not working
in thread script not working

Wrong, wrong, wrong! You still have the original error in the array_element's index... and your reply duplicates what's offered (one hopes, "with good intent," but with the same mistake) above.

Please, test your answers. Any other approach runs a serious chance that you'll be providing bad guidance to future readers.

<rant> ... especially when XP-whoring leads the careless to upvote your node.
aaaAAARGH!</rant> &cv():#r$!!

Replies are listed 'Best First'.
Re^3: script not working
by RFMonk (Acolyte) on Dec 28, 2012 at 00:55 UTC

    the code was tested, and the index should be 1 instead of 2, since start with 0 and the outcome is Line#2. In that you are right. But, the code works!!!

    Happy new year.

Re^3: script not working
by Anonymous Monk on Dec 28, 2012 at 02:37 UTC
    Take lots of deep breaths, not everyone plays XP :)