Re: function that returns a HASH.

2004-06-30 Thread Rod Za
ok, i got the response: > > and the function always returns somethings like this: > > HASH(0x81b99c4)HASH(0x81b988c)HASH(0x814fcf4)HASH(0x81b9c34)HASH(0x81b9afc)HASH(0x81a54f8) It's returning a reference to a hash. You can grab that reference into a scalar: my $hash_ref = function(); And the

Re: function that returns a HASH.

2004-06-30 Thread Rod Za
Oliver, this is wanderful! :) Thank you very much! --- Oliver Schnarchendorf <[EMAIL PROTECTED]> wrote: > to see what's going on in structured data types I strongly recommend the use > of DATA::DUMPER. > > Just include the module into your source code and when you print the $job

Re: function that returns a HASH.

2004-06-30 Thread Oliver Schnarchendorf
On Wed, 30 Jun 2004 11:44:53 -0700 (PDT), Rod Za wrote: > and the function always returns somethings like this: > HASH(0x81b99c4)HASH(0x81b988c)HASH(0x814fcf4)HASH(0x81b9c34)HASH(0x81b9afc)HASH(0x81a54f8) > > How can i get this results in an human redable mode? Hello Rod, to see what's go

function that returns a HASH.

2004-06-30 Thread Rod Za
Hi all, I'm trying to use the Net::CUPS::Printer::cupsGetJobs() function. In theory this function returns the jobs a cups printer got printed or to be printed. I'm using this like: _BEGIN_ use Net::CUPS::Printer; my %jobs = cupsGetJobs('HP4100V',0,0); foreach $key (keys %jobs){ print $jo