in reply to Re^4: Skip lines until you find a delimiter >>
in thread Skip lines until you find a delimiter >>

I suggest that you study this line:
my (@nums) = /,\s*(\d+)/g;
It could very well be that it takes you all day to come close to understanding what that does, but such is the nature of learning something that is both new and complicated.

The major failures in your posting(s): Incomplete/inadequate specification of the problem. And apparently a complete lack of effort on your part to learn from the Monk replies. This last part is the issue that is causing the most problems.

Your problem can be solved easily with a combination of a text editor and Excel. If you are not willing to put in the effort to learn Perl, then just ask a friend in the accounting department to whip out an answer with off-the-shelf software.

Update:
Ok, I don't want to torture you with something that is obvious to the average Monk. A simple way is:

my (@nums) = /,\s*([-\d]+)/g;
In the future, please understand that PerlMonks is about learning Perl.