Installing a module from CPAN

2003-08-14 Thread David Granas
Hi, Im trying to install the Graphics-Simple module from CPAN on ActivePerl but can't seem to get it to work. I ran the PPM install Graphics-Simple which worked ok, but then I tried to run the test program gt1.pl and it gave me an error about not having the Gtk module. I then went to CPAN to

question on global variable / scope

2003-07-03 Thread David Granas
Hi, Im just learning Perl and was a little confused with why I couldnt prevent my subroutines from reading variables from the main program. Here is an example: use strict; my $var = 1; test(); sub test { print $var; } I had thought that a my variable would not be able to be read by the