Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Thoughts on replacing -> with . (safe dereference)

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


in reply to Thoughts on replacing -> with .

Me? I want the colon operator CGI:new:param('colon');

But seriously, I don't mind . in other languages, but in perl? It makes me queasy

OTOH, what would be safe dereference?
 -. $rock-.()-.the-.kasbah(); $rock-.  ()-.  the-.   kasbah();
 ~. $rock~.()~.the~.kasbah(); $rock~.  ()~.  the~.   kasbah();
 &. $rock&.()&.the&.kasbah(); $rock&.  ()&.  the&.   kasbah();
 ?. $rock?.()?.the?.kasbah(); $rock?.  ()?.  the?.   kasbah();
 +. $rock+.()+.the+.kasbah(); $rock+.  ()+.  the+.   kasbah();
 !. $rock!.()!.the!.kasbah(); $rock!.  ()!.  the!.   kasbah();
 -.. $rock-..()-..the-..kasbah(); $rock-.. ()-.. the-..  kasbah();
 -.-. $rock-.-.()-.-.the-.-.kasbah(); $rock-.-.()-.-.the-.-. kasbah();
 ==. $rock==.()==.the==.kasbah(); $rock==. ()==. the==.  kasbah();
 ?-. $rock?-.()?-.the?-.kasbah(); $rock?-. ()?-. the?-.  kasbah();
 -.? $rock-.?()-.?the-.?kasbah(); $rock-.? ()-.? the-.?  kasbah();
 &-. $rock&-.()&-.the&-.kasbah(); $rock&-. ()&-. the&-.  kasbah();
 &&-. $rock&&-.()&&-.the&&-.kasbah(); $rock&&-.()&&-.the&&-. kasbah();
 -&. $rock-&.()-&.the-&.kasbah(); $rock-&. ()-&. the-&.  kasbah();
 -&&. $rock-&&.()-&&.the-&&.kasbah(); $rock-&&.()-&&.the-&&. kasbah();
 -.& $rock-.&()-.&the-.&kasbah(); $rock-.& ()-.& the-.&  kasbah();
 -.&& $rock-.&&()-.&&the-.&&kasbah(); $rock-.&&()-.&&the-.&& kasbah();
 -=. $rock-=.()-=.the-=.kasbah(); $rock-=. ()-=. the-=.  kasbah();
 =-. $rock=-.()=-.the=-.kasbah(); $rock=-. ()=-. the=-.  kasbah();
 ?. $rock?.()?.the?.kasbah(); $rock?.  ()?.  the?.   kasbah();
 ?-. $rock?-.()?-.the?-.kasbah(); $rock?-. ()?-. the?-.  kasbah();
 ?-.: $rock?-.:()?-.:the?-.:kasbah(); $rock?-.:()?-.:the?-.: kasbah();
 ~.: $rock~.:()~.:the~.:kasbah(); $rock~.: ()~.: the~.:  kasbah();

$f.{a}.{b}.{c} $f->{a}->{b}->{c} $f->{a}{b}{c} $$f->{a}{b}{c} $f.{a}{b}{c}

I hope I muddied the waters some :)


Comment on Re: Thoughts on replacing -> with . (safe dereference)
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2015-07-03 23:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (57 votes), past polls