Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

This could have DWIM better

by Aristotle (Chancellor)
on Mar 01, 2006 at 16:54 UTC ( #533694=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $foo if defined $str and length $str;
    
  2. or download this
    $foo if $str;
    
  3. or download this
    BEGIN {
        *CORE::GLOBAL::length = sub(;$) {
            defined $_[0] ? CORE::length( $_[0] ) : undef;
        };
    }
    
  4. or download this
    $foo if length $str;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://533694]
Approved by Corion
help
Chatterbox?
[mark4]: Did activestate use to inclued teh perl packager, pp.exe in the standard distribution? I can't fine "pp.exe" anywhare.
[marto]: no
[marto]: that is to say, to the best of my knowledge, they never did.

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (14)
As of 2018-01-19 14:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How did you see in the new year?










    Results (218 votes). Check out past polls.

    Notices?