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!