Because $in_arg is scalar my $in_arg=@_; assigns the number of elements in @_ (1) to $in_arg.
Instead either:
my ($in_arg)=@_;
or:
my $in_arg=shift;
In reply to Re: My first module
by GrandFather
in thread My first module
by tamaguchi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |