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

Re: Doubley surprised by fat commas

by jo37 (Deacon)
on Jun 10, 2021 at 09:51 UTC ( [id://11133723]=note: print w/replies, xml ) Need Help??


in reply to Doubley surprised by fat commas

This is very similar to the Winking fat comma.

Greetings,
-jo

$gryYup$d0ylprbpriprrYpkJl2xyl~rzg??P~5lp2hyl0p$

Replies are listed 'Best First'.
Re^2: Doubley surprised by fat commas
by AnomalousMonk (Archbishop) on Jun 10, 2021 at 14:02 UTC

    Except that => => (to which I assume you're referring) does not disable leftward stringification by => as ,=> does:

    Win8 Strawberry 5.8.9.5 (32) Thu 06/10/2021 9:48:30 C:\@Work\Perl\monks >perl -Mstrict -Mwarnings use Data::Dump qw(dd); use constant APPLE => 1; my %heesh = (APPLE => => 'red'); dd \%heesh; my %hash = (APPLE , => 'red'); dd \%hash; ^Z { APPLE => "red" } { 1 => "red" }
    (Same results for Strawberry 5.30.3.1 (64).)


    Give a man a fish:  <%-{-{-{-<

      Of course a double "fat comma" does not act as the "Winking fat comma". There are four ways to combine two of "fat comma" and "comma". What they have in common is that there is never an additional undef inserted in the list.

      Greetings,
      -jo

      $gryYup$d0ylprbpriprrYpkJl2xyl~rzg??P~5lp2hyl0p$

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2024-03-29 15:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found