Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
The result of this is ARRAY(blah_address)ARRAY(blah_address2), which I know is a reference to an array. I try to get this data by addinguse Printer; my $prn = new Printer('linux' => 'lp', 'MSWin32' => 'LPT1' ); my %data = $prn->list_printers; print $data{name}; print $data{port};
but this gives me SCALAR(blah_address3). Aaaargghh!!! What's going on? All I want is the data!my @list = \$data{name}; print @list;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: ok, still tryna print!
by Ovid (Cardinal) on Aug 28, 2002 at 15:59 UTC | |
|
Re: ok, still tryna print!
by krisahoch (Deacon) on Aug 28, 2002 at 15:58 UTC |