How does scoping work in Perl modules?

Posted by Mike on Stack Overflow See other posts from Stack Overflow or by Mike
Published on 2010-05-12T20:54:54Z Indexed on 2010/05/14 23:34 UTC
Read the original article Hit count: 202

Filed under:
|
|

I don't really understand how scoping works in Perl modules. This doesn't print anything. I would like it if running a.pl printed 1

b.pm

$f=1;

a.pl

use b;

print $f

© Stack Overflow or respective owner

Related posts about perl

Related posts about module