Stories
Slash Boxes
Comments
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 ]

colomon (8994)

colomon
  (email not shown publicly)

Journal of colomon (8994)

Wednesday December 24, 2008
08:52 AM

switch statement versus ~~

[ #38154 ]
I would have thought

        given $c
        {
            when $c ~~ /defDEF/ { $c = '3'; }
        }

would have worked? This isn't a big deal, it's easy enough to work around, but it does lose elegance points.

PS Looks like $s.substr($i,1) = $c; doesn't work yet, either? Or is there something wrong with the syntax of that?

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