Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

gav (2710)

  (email not shown publicly)
AOL IM: flufflegavin (Add Buddy, Send Message)

Hacker in NYC.

Journal of gav (2710)

Monday June 16, 2003
06:43 PM

what's missing from perl 6

[ #12888 ]

In Perl6 (and 5.10!) you can:

%hash{$key} //= $something

Which checks for definedness rather than truth, but what we are missing is checking for existance. I propose the cunning %% operator:

%hash{$key} %%= $something


The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.