Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re^3: Want for a name?

by LanX (Sage)
on Dec 11, 2013 at 20:40 UTC ( #1066715=note: print w/replies, xml ) Need Help??

in reply to Re^2: Want for a name?
in thread Want for a name?

sure, you need to localize them.

But $a and $b always have the risk to be lexicals from the outer scope▓, I wanted to avoid discussing that problem.╣

It's about naming after all...

Cheers Rolf

( addicted to the Perl Programming Language)

╣) compare this error

DB<108> my $a=3; sort {$a <=> $b} @a Can't use "my $a" in sort comparison at ...

▓) being bound to another package can be solved by investigating the caller, but checking for lexicals involves padwalker.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2023-02-06 16:42 GMT
Find Nodes?
    Voting Booth?
    I prefer not to run the latest version of Perl because:

    Results (34 votes). Check out past polls.