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

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

by kyle (Abbot)
on Apr 14, 2007 at 16:33 UTC ( #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
Node Status?
node history
Node Type: note [id://610082]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2021-01-16 11:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?