Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Why was indirect object syntax inferred here?o

by eg (Friar)
on Feb 17, 2001 at 01:38 UTC ( [id://59000]=note: print w/replies, xml ) Need Help??


in reply to Why was indirect object syntax inferred here?o

You need to prototype your sub if you want to use it like a builtin (see perlsub) inside of the sub definition.

sub walk($); sub walk($) { my $t = shift(); ...

Either that or put parens around the argument in the sub.

... else { walk( $val ); } ...

I guess the problem is that, inside of the sub definition, walk is not yet defined.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://59000]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-04-23 16:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found