Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: Yet another does-function-exist question (eval sub)

by kyle (Abbot)
on Apr 14, 2007 at 16:33 UTC ( [id://610082]=note: print w/replies, xml ) Need Help??


in reply to Re: Yet another does-function-exist question (eval sub)
in thread Yet another does-function-exist question

Neat! It seems to consider a lot of things to be defined that aren't so executable. All of these, for instance:

@ARGV= qw( ; "foo" 123 {} [] ) if ! @ARGV; # etc. __END__ ;: defined "foo": defined 123: defined {}: defined []: defined

Replies are listed 'Best First'.
Re^3: Yet another does-function-exist question (eval sub)
by tye (Sage) on Apr 14, 2007 at 16:45 UTC

    As the name implies, it is meant to be passed a word. (Since non-words can't be called as subroutines without unusual syntax.)

    - tye        

Re^3: Yet another does-function-exist question (eval sub)
by naikonta (Curate) on Apr 14, 2007 at 16:59 UTC
    If that really matters for an example, definedWord could be just powered with regex. ++tye.

    Open source softwares? Share and enjoy. Make profit from them if you can. Yet, share and enjoy!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-04-19 04:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found