scriptsHello,
I call my script with the following line $ ./count.pl /var/log/file text this works fine but sometimes the "text" is "foo(bar)" and then mygives an error. syntax error near unexpected token `foo(b'
I believe the syntax error is from your shell and you can get around this by quoting your string to search on...
$ ./count.pl /var/log/file 'foo(bar)'
Should do it.
Sometimes,...
even the most simple problems could take several hours to understand until you ask and somebody's gives th right answer,
Thanks everybody for the quick and right answer
With kind regards,
Maurice Lucas
TAOS-IT
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>