Re: [Arsperl-users] Performance problems
Brought to you by:
jeffmurphy
|
From: Clayton S. <cla...@gm...> - 2007-08-02 14:48:50
|
On 8/2/07, Paizo <pai...@gm...> wrote:
> i have another ( stupid question, still new to perl :| ) , if inside the the
> loop:
> [ loop snipped ]
> i want to convert some dates that are in seconds since 1970 to something
> like dd/mm/yyyy hh.mm.ss
> if i try to read $field_ids[3] and always get "3" instead of the real
> content :/
> what i miss?
Without more code, and data I really can't tell.
If you want the value for a field in the form you more likely want to
use the entry hash:
$entry{'field_id'}
If you want to inspect these data structures you can use the
Data::Dumper module.
use Data::Dumper;
....
print Dumper \@field_ids;
foreach my $entry_id (sort keys %entries) {
my %entry = ars_GetEntry($ctrl, $ARSschema, $entry_id, @field_ids);
print Dumper \%entry;
print datafile join("|", @entry{@field_ids} ) . "\n";
}
--
Clayton Scott
cla...@gm...
|