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 my scripts
gives an error.
syntax error near unexpected token `foo(b'
Could somebody give me a hint?
I'm working on linux
use strict; # Always use strict
use warnings; # Very helpful, especially if you are new to Perl
die "No argument\n" if ( ARGV == 0 );
#my $logfile = "/var/log/qmail/smtpd/rejects/00000*
my $logfile = $ARGV;
my $string = $ARGV;
my $tai_cmd = "/usr/local/bin/tai64n2tai";
my $count = 0;
my $now = ...