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})
::
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+)
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.
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