Change
$arg=<stdin>;
to
chomp($arg=<stdin>);
Ref: chomp, IO Operators
Update: Oh and change
print $arg;
to
return $arg;
In reply to Re: Accessing values of a Hash object
by ikegami
in thread Accessing values of a Hash object
by dReKurCe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |