in reply to Re^4: help with regular expression required
in thread help with regular expression required

my $outfile = $ARRGV[2];

Perhaps you meant $ARGV[1]?

I can only assume you removed the use warnings; use strict; from the top of the script, otherwise, Perl would have told you about the typo. So don't do that!

Replies are listed 'Best First'.
Re^6: help with regular expression required
by PitifulProgrammer (Acolyte) on Aug 19, 2014 at 09:52 UTC

    Yeah, I cannot believe how stupid I was. I mean I always keep strict and warnings enabled as my teacher told me.

    In my search for the error I ignored the RR and was just thinking about the usual mistakes, i.e. wrong assignment etc.

    I will pay more attention to conventional spelling mistakes in the future.

    Thanks for your reply.

    I need to continue with this experiment. More questions ahead :)

    Kind regards

    C.