Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^6: Modules to reduce syntax?

by LanX (Saint)
on Dec 27, 2021 at 22:33 UTC ( #11139957=note: print w/replies, xml ) Need Help??


in reply to Re^5: Modules to reduce syntax?
in thread Modules to reduce syntax?

> Or maybe I don't know what you mean by, from the second level on.

Your first level deref with H2O

$ref->foo

is 2 characters shorter than

$ref->{foo}

but that's it!

No more gains for further levels

$ref->foo->$bar->baz->bla °

vs

$ref->{foo}{$bar}{baz}{bla}

is still only 2 characters better.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

°) hypothesized, I've never used or tested this.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2023-09-28 14:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?