Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: Trouble getting size of list returned from sub

by TomDLux (Vicar)
on Nov 30, 2012 at 02:31 UTC ( #1006385=note: print w/replies, xml ) Need Help??


in reply to Re: Trouble getting size of list returned from sub
in thread Trouble getting size of list returned from sub

You can also fold the variable into the same line as the print:

say ( my $mp =()= bad() );

But I wouldn't say that's an improvement. In fact, I would tuck all this away into a routine, to hide details and leave only the high-level purpose.

To learn more about this ( the goatse operator ) and other fun, little-known operators, check out secret perl operators

As Occam said: Entia non sunt multiplicanda praeter necessitatem.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1006385]
help
Chatterbox?
[erix]: spies should use a type-writer, no power needed, no auditable
[erix]: if all else fails, eat the paper
[erix]: a few years ago there was suddenly the news that the Kremlin was using typewriters again. Heard nothing about it afterward
[erix]: (maybe that means it worked)
[oiskuu]: Yeah, it might work as long as there are no root exploits. ;-)
[Corion]: Also, it's much harder to leak paper sheets than it is to leak documents that are available electronically
[oiskuu]: tye, do you make use of remote logging?

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2017-06-23 20:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (555 votes). Check out past polls.