RE: Help with array reference that has a HASH reference.

2004-07-06 Thread Charles K. Clarkson
Rod Za <[EMAIL PROTECTED]> wrote: : --- "Charles K. Clarkson" <[EMAIL PROTECTED]> wrote: :: next unless :: /^ :: \Q$printer\E- :: (\d+)\s+ :: (\w+)\s+\d+\s+\w+\s :: (\d+\s\w+\s\d+\s\d{2}:\d{2}:\d{2}) ::

RE: Help with array reference that has a HASH reference.

2004-07-06 Thread Rod Za
Hi Charles, thank you very much for the help and the hint: --- "Charles K. Clarkson" <[EMAIL PROTECTED]> wrote: [snip] > We really don't need %job at all: > my @jobs; > foreach ( @lpstat ) { > next unless > /^ > \Q$printer\E- > (\d+)

RE: Help with array reference that has a HASH reference.

2004-07-06 Thread Charles K. Clarkson
Rod Za <[EMAIL PROTECTED]> wrote: : I'm trying to do a function that load all the jobs from : the printers on systems (Unix), and this function : returns a hash that has the printer name, the number of : jobs and an array that got another hash with the names : of job, owner jobs, date of the job.

Help with array reference that has a HASH reference.

2004-07-05 Thread Rod Za
Hi, I'm trying to do a function that load all the jobs from the printers on systems (Unix), and this function returns a hash that has the printer name, the number of jobs and an array that got another hash with the names of job, owner jobs, date of the job. I thinks something like this: my %ha