Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: Thoughts on replacing -> with .

by Anonymous Monk
on Jun 11, 2013 at 14:25 UTC ( #1038264=note: print w/replies, xml ) Need Help??


in reply to Re: Thoughts on replacing -> with .
in thread Thoughts on replacing -> with .

I find that many people do something like:

$var->{key1}->{key2}->{key3}

when the following should suffice:

$var->{key1}{key2}{key3}

Replies are listed 'Best First'.
Re^3: Thoughts on replacing -> with .
by Ralesk (Pilgrim) on Jun 12, 2013 at 11:32 UTC

    Iím one of those people, and Iím not entirely sure why I do it. Iím fully aware that the later arrows are optional. The one arrow notation feels a bit asymmetric, and it doesnít show that they all are refs in there, I guess.

Re^3: Thoughts on replacing -> with .
by ambrus (Abbot) on Jun 12, 2013 at 19:03 UTC

    I usually write ${${$$var{key1}}{key2}}{key3}, or, very rarely $$var{key1}{$key2}{$key3} or an intermediate variant. I never use arrow dereferencing.

      Those are particularly unusual ways of doing it. But hey, TIMTOWTDI.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1038264]
help
Chatterbox?
[muthusathish]: Hi All i need a help
[Eily]: hello muthusathish, we have many helps here
[muthusathish]: i have a perl based dll, how to decompile
[hippo]: :-D
[Eily]: you mean a dll where the SW was written in perl? That sounds unlikely
[muthusathish]: please help me regarding this
[hippo]: Easier just to go and look at the source, no?
[Eily]: mostly because perl isn't compiled in the usual sense of the meaning, you can't execute the opcodes directly, you need the perl engine
[muthusathish]: i dont have the environment too, but i need to get the logics so that i can re-wite
[Eily]: what makes you think your dll is "perl based" ?

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (11)
As of 2018-02-23 09:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (301 votes). Check out past polls.

    Notices?