Re: [Arsperl-users] Printing Array fields
Brought to you by:
jeffmurphy
|
From: Wesley S. <wes...@is...> - 2008-08-12 13:31:57
|
On 12.08.08 12:12 Tarakad Raghavan Viswanathan (KIRK 21) wrote:
> Im trying to print "Work Log" and Im getting ARRAY(0xa68d70) instead of the value.
Hi, have a look at references in the perl documentation.
#!/bin/perl
use strict;
$\="\n";
my $arr = [ qw(an array) ];
print $arr; # prints ARRAY(0x8152c28)
if (ref($arr) == "ARRAY") {
print join(" ", @$arr);
}
Cheers,
Wesley
--
Online Broadband BV, http://www.online.nl, http://www.euronet.nl
Wesley Schwengle, System Administrator, IT Operations (Development/Integration)
Muiderstraat 1, PO BOX 10241, 1001 EE Amsterdam, T: +31 20 5355555, F: +31 20 5355749
!! Please be aware that my e-mail address has changed (again) to: wesley.schwengle at
!! is.online.nl, mails send to my previous address will NOT be forwarded !!
|