On 8/2/07, Paizo <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED];

foreach my $entry_id (sort keys %entries) {
    my %entry = ars_GetEntry($ctrl, $ARSschema, $entry_id, @field_ids);
    print Dumper \%entry;
    print datafile join("|", @[EMAIL PROTECTED] ) . "\n";
}

-- 

Clayton Scott
[EMAIL PROTECTED]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Arsperl-users mailing list
Arsperl-users@arsperl.org
https://lists.sourceforge.net/lists/listinfo/arsperl-users

Reply via email to