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

Re: The N-queens problem using pure regexes

by Abigail-II (Bishop)
on Oct 11, 2003 at 01:49 UTC ( [id://298465]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: The N-queens problem using pure regexes
in thread The N-queens problem using pure regexes

Clearing $@ isn't necessary. $@ is guaranteed to be a "null string" (sic) if there's no error in an eval block or string.

But it has to do something with the eval.

Abigail

Replies are listed 'Best First'.
Re: Re: The N-queens problem using pure regexes
by BrowserUk (Patriarch) on Oct 11, 2003 at 02:32 UTC

    Other than perhaps checking that /usr/bin/time was found, accepted it's parameters, was able to execute the command and completed successfully returning a sensible value in $time, nothing particularly leaps off the screen at me.

    Hopefully, despite being vital, it's something non-obvious, else I'm gonna feel a bit foolish:)


    Examine what is said, not who speaks.
    "Efficiency is intelligent laziness." -David Dunham
    "Think for yourself!" - Abigail

      There is an alarm that aborts the piece of code running in the eval block, to avoid having to wait for a program that may take a long time to run. However, that potentially long running program isn't killed - it just keeps on running, till it either finds an answer, or gets killed manually (guess what happened ;-)).

      Abigail

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-03-28 15:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found