perl, module variable

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/12 21:04 UTC
Read the original article Hit count: 207

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