On Fri, Aug 12, 2011 at 7:03 AM, TimKapHwan <tkapra...@gmail.com> wrote:

> #!/usr/bin/perl -w
> sub func
> {
> return 10;
> }
> print func * 5, "\n";
>

Perl interprets that command like this:
print func(*5, "\n");

The "*5" and "\n" become parameters to func. Change the code like this:
print func() * 5, "\n";

-- 
Robert Wohlfarth

Reply via email to