Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re (tilly) 3: What Happened...(perils of porting from c)

by tilly (Archbishop)
on Jan 05, 2001 at 22:35 UTC ( #50119=note: print w/replies, xml ) Need Help??


in reply to Re: Re (tilly) 1: What Happened...(perils of porting from c)
in thread What Happened...(perils of porting from c)

The reason for removing the return statement is that you are not supposed to use that outside of functions (eval, do).

Just end with:

1;
and it will work.

As for the pointer logic, sorry. No energy to go through it. It looked like a mess FWIW. I would just use recursion for this problem. (OK, so you take a performance hit.)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2022-05-20 11:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (73 votes). Check out past polls.

    Notices?