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

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.
  • $hash{hash} = {five => 5, six => 6, seven => 7};
    @vals = @{$hash{hash}}{qw(five seven)};

    Note, don't make the mistake of

    @vals = $hash{hash}->{qw(five seven)};
    which parses correctly but does not give you what you're looking for.

    I don't think I'd even know about slices if it weren't for the warning you get with @array[$i].

    J. David works really hard, has a passion for writing good software, and knows many of the world's best Perl programmers