Re: working example File::Taill
From: Richard Morse (remorse_at_partners.org)
Date: 03/19/04
- Previous message: Richard Morse: "Re: working example File::Taill"
- In reply to: David de Kloet: "Re: working example File::Taill"
- Next in thread: GreenLight: "Re: working example File::Taill"
- Reply: GreenLight: "Re: working example File::Taill"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 19 Mar 2004 15:23:26 -0500
In article <Pine.GSO.4.58.0403192105350.19242@keg.cs.vu.nl>,
David de Kloet <dskloet@cs.vu.nl> wrote:
> 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).
It's better not to pre-declare your variables -- declare them just where
you'd need them...
Ricky
- Previous message: Richard Morse: "Re: working example File::Taill"
- In reply to: David de Kloet: "Re: working example File::Taill"
- Next in thread: GreenLight: "Re: working example File::Taill"
- Reply: GreenLight: "Re: working example File::Taill"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|