in reply to Re^11: Flummoxed by strict.pm
in thread Flummoxed by strict.pm
Thanks again for pursuing this thread, ikegami
So that I would be sure that I had perl working, I did a hello world as follows:
#!/usr/bin/perl -w print "Hello, world!\n";
For which I got this:
C:\Perl64\bin>Hello_world_test.pl Hello, world!
Naturally, I added a 'use strict;' line as follows to the script:
#!/usr/bin/perl -w use strict; print "Hello, world!\n";
For which I got:
C:\Perl64\bin>Hello_world_test.pl Can't locate strict.pm in @INC (@INC contains: .) at C:\Perl64\bin\Hel +lo_world_t est.pl line 2. BEGIN failed--compilation aborted at C:\Perl64\bin\Hello_world_test.pl + line 2.
I can find strict.pm in lib, but apparently Perl can't
Does this suggest an approach? If you are bored with this thread, I shall certainly understand.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^13: Flummoxed by strict.pm
by BrowserUk (Patriarch) on May 10, 2010 at 00:40 UTC | |
by CaptainRob (Novice) on May 10, 2010 at 03:30 UTC | |
by BrowserUk (Patriarch) on May 10, 2010 at 04:18 UTC | |
by ikegami (Patriarch) on May 10, 2010 at 04:48 UTC | |
|
Re^13: Flummoxed by strict.pm
by ikegami (Patriarch) on May 10, 2010 at 03:02 UTC | |
by CaptainRob (Novice) on May 10, 2010 at 19:11 UTC | |
by Corion (Patriarch) on May 10, 2010 at 19:16 UTC | |
by CaptainRob (Novice) on May 11, 2010 at 01:49 UTC | |
by ikegami (Patriarch) on May 11, 2010 at 02:11 UTC | |
|