Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: This could have DWIM better

by japhy (Canon)
on Mar 02, 2006 at 14:52 UTC ( #533903=note: print w/ replies, xml ) Need Help??


in reply to Re^2: This could have DWIM better
in thread This could have DWIM better

Sounds like it's passing the package/global $_ instead of the lexical $_. I must've missed the memo on "lexical $_".


Jeff japhy Pinyan, P.L., P.M., P.O.D, X.S.: Perl, regex, and perl hacker
How can we ever be the sold short or the cheated, we who for every service have long ago been overpaid? ~~ Meister Eckhart


Comment on Re^3: This could have DWIM better
Replies are listed 'Best First'.
Re^4: This could have DWIM better
by ysth (Canon) on Mar 02, 2006 at 18:51 UTC
    It's passing nothing. The bug is that the code calling length should always provide the argument.

    The memo.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (9)
As of 2015-07-08 06:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (94 votes), past polls