perl -s and use strict
- From: sarthak.patnaik@xxxxxxxxxxx (Sarthak Patnaik)
- Date: Thu, 29 Mar 2007 12:05:28 +0530
Hello,
I have a small script:
#!/usr/bin/perl -ws
use strict;
print $k;
As I am using "use strict;", it is giving the following message:
Variable "$k" is not imported at ./test.pl line 3.
Global symbol "$k" requires explicit package name at ./test.pl line 3.
Execution of ./test.pl aborted due to compilation errors.
Is there any workaround for this, so that I can use strict and -s together.
Regards,
Sarthak
Disclaimer
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom it is addressed. If you have received this communication in error, please immediately notify the mailadmin@xxxxxxxxxxx and destroy the original message. The recipient should check this email and any attachments for the presence of viruses. Ness has taken every reasonable precaution to minimize this risk, and accepts no liability for any damage caused by any virus transmitted in this email. Ness reserves the rights to monitor and review the content of all messages sent to or from this E-mail address, and store them on the Ness E-mail system.
- Follow-Ups:
- Re: perl -s and use strict
- From: Paul Lalli
- Re: perl -s and use strict
- From: Chas Owens
- RE: perl -s and use strict
- From: Sarthak Patnaik
- Re: perl -s and use strict
- Prev by Date: Re: sending output to file and terminal
- Next by Date: Re: perl -s and use strict
- Previous by thread: sending output to file and terminal
- Next by thread: RE: perl -s and use strict
- Index(es):
Relevant Pages
|