Message
From: JKrasJ
To: shaunwallace (AT) mvalaw (DOT) com
Sent: Mon, 15 May 2006 14:30:18 -0400
Subject: enumeration of collection
The issue(s), curiously to me, appear to be that Perl does not want
to parse (is that the right word?) an object property
either within its print statement or within the the "in" construct of
the foreach statement.
#This works fine:
my $collection = $RS->Fields;
foreach my $fldval (in $collection) {
#This does not:
#foreach my $fldval (in $RS->Fields) {
#This works fine:
my $value = $fldval->Name; #($_ ->Name also works)
print "$value ";
#this does not:
# print "$fldval->Name ";
}
$fldval dumps out identically with Data::Dumper either way
any insight?
PS: I'm new to user groups like this. Am I supposed to reply directly
to you or do I post this on the forum?
Thanks
Jay Krasner
Perl-Win32-Database mailing list
Perl-Win32-Database (AT) listserv (DOT) ActiveState.com
To unsubscribe: