On Thu, 17 May 2001, Evan Case wrote:
> Howdy,
>
> I've got some IIS logs that don't have the dates on each line, and I tried to run
>adddates.pl on them, but i get this output:
> <snip>
> # ./adddates.pl /opt/W3SVC8/
> syntax error at ./adddates.pl line 74, near "/^[^\#]/ )"
> Execution of ./adddates.pl aborted due to compilation errors.
> </snip>
> line 74 is:
> last if $contents =~ /^[^\#]/ );
>
> I tried with wildcards (* and *.*) after the path with the same results.
>
> <snip>
> # perl -v
>
> This is perl, v5.6.0 built for i86pc-solaris
> </snip>
>
> What do i need to do to get it working?
Looks like a missing open-bracket before $contents.
--
Stephen Turner http://www.statslab.cam.ac.uk/~sret1/
Statistical Laboratory, Wilberforce Road, Cambridge, CB3 0WB, England
"Your account can only be used for a single internet session at any one
time and for no more than 24 hours in any one day." (NTL terms of use)
+------------------------------------------------------------------------
| This is the analog-help mailing list. To unsubscribe from this
| mailing list, go to
| http://lists.isite.net/listgate/analog-help/unsubscribe.html
|
| List archives are available at
| http://www.mail-archive.com/[email protected]/
| http://lists.isite.net/listgate/analog-help/archives/
| http://www.tallylist.com/archives/index.cfm/mlist.7
+------------------------------------------------------------------------