Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

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

by tilly (Archbishop)
on Jan 05, 2001 at 22:35 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2024-04-19 09:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found