in reply to Re^3: using perl installed in another computer
in thread using perl installed in another computer

Actually, case is extremely important on Windows. While the file system is case-insensitive, perl is not. This can cause strange errors that can be hard to diagnose.

If you have a windows box handy, try the following:

use Strict; # use strict; my $val = 5000; $va1++; # no "Global symbol..." error here print $va1;
or On a unix system, perl would complain loudly that it "can't find Strict.pm in @INC". Windows will quietly load strict.pm instead of Strict.pm, and then mysteriously fail to catch a minor typo.

Another variation:

use lwp::simple; # not LWP::Simple getprint 'http://yahoo.com'; # (Do you need to predeclare getprint?)
Of course, you probably already know this, but I hope this keeps someone else from being tripped up by it.

Replies are listed 'Best First'.
Re^5: using perl installed in another computer
by Tanktalus (Canon) on Mar 31, 2005 at 22:21 UTC

    I was only referring to the filename, not the contents ;-) e.g., if you bring up config.pm or Config.pm in your favourite editor, it wouldn't matter.

    But, on that topic, if you were to do something that didn't require importing, it'd work just fine...

    use lwp::simple; LWP::Simple::getprint('http://yahoo.com');
    Of course, the actual use must be perfectly accurate with regards to case.

    But now we're getting extremely pedantic :-)