Re: working example File::Taill
From: David de Kloet (dskloet_at_cs.vu.nl)
Date: 03/19/04
- Next message: Richard Morse: "Re: problem with pack and output to binary files"
- Previous message: Jim Canfield: "Re: DBI selectall_hashref problem"
- In reply to: Jim roos: "working example File::Taill"
- Next in thread: Richard Morse: "Re: working example File::Taill"
- Reply: Richard Morse: "Re: working example File::Taill"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 19 Mar 2004 21:11:51 +0100
Jim roos:
> Hi there,
>
> As a newbie to perl i have problems to get the following script to run
> properly.
> I get the message
> Global symbol "$file" requires explicit package name at test.pl line 09
> Global symbol "$line" requires explicit package name at test.pl line 10
> Can someone help me out please...
I'm fairly new to perl but I believe you should add the line:
my($file, $line);
to declare your variables (since you use strict).
David
>
> Thank You.
>
>
> #!/usr/bin/perl
>
> use MIME::Parser;
> use strict;
> use File::Tail;
>
>
>
> $file=File::Tail->new("/home/noc/procmail");
> while (defined($line=$file->read)) {
> print "$line";
> }
- Next message: Richard Morse: "Re: problem with pack and output to binary files"
- Previous message: Jim Canfield: "Re: DBI selectall_hashref problem"
- In reply to: Jim roos: "working example File::Taill"
- Next in thread: Richard Morse: "Re: working example File::Taill"
- Reply: Richard Morse: "Re: working example File::Taill"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|