in reply to Re: Unix command working with Perl
in thread Unix command working with Perl

thanks for all the answers! I keep getting the following errors:
/(\w|[/: unmatched [] in regexp at tes2 line 12.
The other error keeps popping up reference to checking of arguments but I am running it with two arguments at command line. My script name is tes2:
tes2 Oldfile Newfile
Usage: tes2 from to

Replies are listed 'Best First'.
Re3: Unix command working with Perl
by Hofmator (Curate) on May 31, 2002 at 14:45 UTC

    Update: Ahh, this was a comment to particle's code ... now I see ... nothing to see here

    /(\w|[/: unmatched [] in regexp at tes2 line 12.
    Aehmm, what regex?? If you show us all your code we might be able to help you ...

    -- Hofmator

Re^3: Unix command working with Perl
by particle (Vicar) on May 31, 2002 at 14:55 UTC
    the \ should have been escaped... i didn't think that was necessary in brackets. i've updated my code.

    ~Particle *accelerates*