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

Re: Is typeglob feature really useful?

by Tux (Canon)
on Jan 10, 2021 at 13:42 UTC ( [id://11126706]=note: print w/replies, xml ) Need Help??


in reply to Is typeglob feature really useful?

I use it all the time. I know (some) people think it is bad practice, but in my mind it fits. It nicely groups thing that are equal. $cow is the current cow to work with @cow is the heard of available cows and %cow is nicely collecting the properties of each cow, so $cow{$cow}{weight} makes perfect sense to me. YMMV.

I sometimes doubt to use @cows (which works well in foreach my $cow (@cows) {) or @cow (which works better with milk ($cow[$_]) for 2, 5, 7..9;).


Enjoy, Have FUN! H.Merijn

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-03-29 05:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found