This is the version of Perl I have.

D:\reports>perl -v

This is perl, version 5.003_07

Copyright 1987-1996, Larry Wall

        + suidperl security patch
        Win32 port Copyright (c) 1995-1996 Microsoft Corporation.
                All rights reserved.
        Developed by ActiveWare Internet Corp.,
http://www.ActiveWare.com

Perl for Win32 Build 307 - Built 10:11:54 Jul 15 1997

Perl may be copied only under the terms of either the Artistic License
or the
GNU General Public License, which may be found in the Perl 5.0 source
kit.





-----Original Message-----
From: Offer Kaye [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 06, 2005 1:24 PM
To: Perl Beginners
Subject: Re: How would I simulate this in Perl?

On 5/6/05, macromedia wrote:
> 
> I just tried it but get this error. What does it mean/
> 
> > perl test.pl
> Global symbol "line" requires explicit package name at test.pl line
18.
> Variable "$line" is not imported at test.pl line 19.
> Global symbol "line" requires explicit package name at test.pl line
19.
> Execution of test.pl aborted due to compilation errors.
> 

It means you did something wrong :-)
The code I sent you doesn't have 19 lines, nor is there any problem
with it on my machine  - just tried it and the only problem is that I
should have used single quotes instead of double quotes in the path
arg to the "find" call, i.e.: 'D:\mywork'. instead of "D:\mywork".

Did you perhaps change the code I emailed?

Could the problem be that you are using a very old perl? Please paste
the output of running "perl -V" from the command line. Also please
paste the exact contents of test.pl.

Regards,
-- 
Offer Kaye

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to