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

Re: Dropping the ampersand

by imp (Priest)
on Feb 09, 2007 at 21:12 UTC ( #599285=note: print w/ replies, xml ) Need Help??


in reply to Dropping the ampersand

Perl is very particular about the arguments to sort. In this case perl is interpreting your code to mean that it should use Con::liveones to sort the empty list ().

You should just store the list in a temporary array, otherwise you'll have to do something hideous like this:

my @livesys = sort @{[Con::liveones()]};


Comment on Re: Dropping the ampersand
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2014-12-25 20:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (163 votes), past polls