This post is a result of Passing a required script arguments
Below is my code I'm using, and I simply want to print the argument passed to the Foo module:
The module seems to work but it's returning "NAME: Foo", and not "TEST".#####Foo.pm###### package Foo; sub test{ my $name = shift; return $name; } 1; ##### bar.pl ##### #!/perl/bin/perl use warnings; use strict; use Foo; my $name=Foo->test("TEST"); print "NAME: $name\n";
Thanks in advance
In reply to First Perl Module!! by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |