in reply to Returning A Pseudo-Hash in Array Context

Thankfully, LD2 already addressed why pseudo hashes suck. One solution I've used for cases like this is to support multiple types of requests:

my( $day, $month, $year )= FileTimeToSystemTime( $int64, qw(day month year) ); my @date= FileTimeToSystemTime( $int64 ); FileTimeToSystemTime( $int64, \(my %date) );

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

Replies are listed 'Best First'.
Re: (tye)Re: Returning A Pseudo-Hash in Array Context
by John M. Dlugosz (Monsignor) on Jul 11, 2001 at 01:15 UTC
    So, the caller specifies the order, rather than remembering it. I like. Thanks, that's more food for thought.

    —John