in reply to Re: Re: Re: Re: Reference to a single array item in an array of hashes?
in thread Reference to a single array item in an array of hashes?

Ah yes that would explain it. $job is a scalar variable holding a reference to the hash, as such you need to dereference it when accessing a specific field of the hash. Like so $job->{start} =~ s/^0+//;


HTH
I tried to swear at perl and it compiled!

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Re: Reference to a single array item in an array of hashes?
by ogxela (Novice) on Apr 06, 2004 at 00:08 UTC

    Thanks, that worked. I've only recently had to start using references in my code, so I apprectiate your help.

    --Alex