in reply to Re: parsing lists
in thread parsing lists

This creates a file for every line of input.
write_file("$counter-$_.cvs");
Careful!

Also, sh1tn, I don't understand

++$counter > 200 and last;
but I've seen it around... this is some kind of perl idiom right? What were you trying to do?

Replies are listed 'Best First'.
Re^3: parsing lists
by sh1tn (Priest) on Mar 04, 2005 at 13:36 UTC
    Also, sh1tn, I don't understand
    ++$counter > 200 and last;
    ++$counter # increments the value of $counter and returns # the values after the increment and # logical and operator last # immediately exits the loop
    You may want to see perlop and last command.