in reply to Win98 &

If you have made absolutely no changes, you'll want to check in the module to see how the variable or subroutine that you're accessing is getting exported. Are there conditions under which it's not exported? Maybe you should specify what you want to import into your script. For example, if you want to import the standard functions from CGI.pm, you add use CGI qw /:standard/;.

Also, you've specified a subroutine AND a scalar. Which is it? foo($text) is a function that you're calling and $main::foo is accessing the scalar $foo in package main.

Cheers,
Ovid

Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.

Replies are listed 'Best First'.
Re: (Ovid) Re: Win98 &
by Anonymous Monk on Jan 08, 2001 at 08:18 UTC
    Thanks a zillion for your help. I ended up re-installing Perl and then it worked; probably a registry problem... : ( Cheers!