in reply to Array of hashes of arrays

You use @{ }:

push @{ $mass_info[0]{cpu_bursts} }, 14;

I'd like to be able to use:

push $mass_info[0]->{cpu_bursts}->@, 14;
but that hasn't been implemented yet.

        - tye (but my friends call me "Tye")

Replies are listed 'Best First'.
RE: (tye)Re: Array of hashes of arrays
by extremely (Priest) on Nov 10, 2000 at 10:37 UTC
    That is evil notation tye. Is that going to be implemented or are you jes' wishin'?

    Everything in perl up till now has been to prefix for context. If you want a scalar, you start with a '$', if you want an array you use an '@' and so on.

    --
    $you = new YOU;
    honk() if $you->love(perl)

RE: (tye)Re: Array of hashes of arrays
by tilly (Archbishop) on Nov 10, 2000 at 17:34 UTC
    Actually it has been implemented already. And discussed.

    Perhaps you think it needs to be discussed again? :-)

      Well, for a minimalist's version of "implemented". For those that don't take the time to read the referenced thread from the p5p e-mail list. It appears that a patch to implement it has been created but not been accepted to any current or future version of Perl, at least partially because the next version of Perl was in a "feature freeze" at the time.

      It is unclear to me whether the patch was fully analyzed nor whether it would have been accepted had there not been a "feature freeze". So whether this will be in a future version of Perl is still in doubt (at least to me).

              - tye (but my friends call me "Tye")