those are my sample programs, so why is it exactly that I get this output?program.pl #!/usr/bin/perl -w use strict; use lib '/home/httpd/cgi-bin/testing/WORTHLESS'; use library; print $library::my; print $library::our; my $thing = $library::my; my $other = $library::our; print "$thing\n$other"; -------------- library.pm my $my = "my"; our $our = "our"; print "lib $my\n$our endlib";
It is my understanding that the "lib my" and the "our endlib" should be printed out directly after each other given they are part of the same print statement. Obviously I am wrong.#./program.pl lib my Use of uninitialized value in print at ./program.pl line 6. Use of uninitialized value in print at ./program.pl line 7. Use of uninitialized value in concatenation (.) or string at ./program +.pl line 12. Use of uninitialized value in concatenation (.) or string at ./program +.pl line 12. our endlib
In reply to odd things with my and our by jcpunk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |