..and my first module..test.pl ------ #!/usr/bin/perl -w use strict; use test_module; my $var=10; my $new_var=testsub($var); print "$new_var\n";
Could someone explain why this construct prints out "11" instead of 20?? Thank you for your help.test_module.pm ----------------------- sub testsub { my $in_arg=@_; my $new_arg=$in_arg+10; return($new_arg); } 1;
In reply to My first module by tamaguchi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |