Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

rest function?

by jarwulf (Initiate)
on Apr 11, 2013 at 01:08 UTC ( [id://1028056]=perlquestion: print w/replies, xml ) Need Help??

jarwulf has asked for the wisdom of the Perl Monks concerning the following question:

Does anybody know of a rest function in perl? $return_line = rest($short_module, $peakapex); I'm not exactly sure what it does. The only includes the pl file has are use File::Spec;. I tried to google but the only thing I get is some sort of 'RESTFUL' framework which doesn't look like its the same thing.

Replies are listed 'Best First'.
Re: rest function?
by Anonymous Monk on Apr 11, 2013 at 01:47 UTC
Re: rest function?
by Krambambuli (Curate) on Apr 11, 2013 at 09:45 UTC
    Check the _full_ code of your source. Isn't there any XS/C code around it, so that some C is integrated in your Perl ? Or the other way round, your Perl is integrated in some C app ?

Re: rest function?
by hdb (Monsignor) on Apr 11, 2013 at 09:13 UTC

    You have not provided any context or background where you got that line from. Have you considered that this is a typo? Like reset, restore, test or similar...

Re: rest function?
by igelkott (Priest) on Apr 11, 2013 at 22:25 UTC
    includes

    Since you use this term, just want to make certain that you're checking both for use and require and that you know that these can appear practically anywhere in the file.

    If you find no other sources, maybe rest simply isn't defined at all. For example:
    perl -e 'if(0) { $return_line = rest($short_module, $peakapex); } else { print "foo\n"; }'
    will run without error (ignoring strict and warnings for the moment). Probably not so obvious in your program but you can check for this situation with a nearby print statement or, of course, a proper debugger.

    If even this doesn't explain it, the definition of rest must be hidden in you file somehow.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-04-19 17:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found