C
cyl
How to explain the output
&foo:123
foo():
from the script below
sub foo
{
my $x = shift;
print "$x\n";
}
sub bar
{
print "&foo:";
&foo;
print "foo():";
foo();
}
bar(123);
__END__
I can guess how it works this way but I'm wondering why? Is this
mentioned in perldoc?
&foo:123
foo():
from the script below
sub foo
{
my $x = shift;
print "$x\n";
}
sub bar
{
print "&foo:";
&foo;
print "foo():";
foo();
}
bar(123);
__END__
I can guess how it works this way but I'm wondering why? Is this
mentioned in perldoc?