Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I am a very new Perl user using Mac OS X 10.6.3 and running Perl 5.10.0.
I'm trying to use the "mechanize" module for data collection. I downloaded and installed this module using CPAN ($perl -MCPAN -e shell). Now the "use warnings" and "use strict" commands don't appear to be working. I start in Terminal with:
$which perl
/usr/bin/perl
$perl -v
$use strict;
-bash: use: command not found
$use warnings;
-bash: use: command not found
Any idea as to why this is happening and/or what I can do to get these commands to work would be very helpful.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: "Use strict" and "Use warnings" not working
by toolic (Bishop) on Jun 03, 2010 at 00:17 UTC | |
|
Re: "Use strict" and "Use warnings" not working
by davido (Cardinal) on Jun 03, 2010 at 06:27 UTC | |
|
Re: "Use strict" and "Use warnings" not working
by Argel (Prior) on Jun 03, 2010 at 19:36 UTC | |
by choroba (Cardinal) on Jun 03, 2010 at 20:36 UTC | |
by Argel (Prior) on Jun 03, 2010 at 22:05 UTC | |
|
Re: "Use strict" and "Use warnings" not working
by pemungkah (Priest) on Jun 03, 2010 at 22:57 UTC |