Windows

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • Fwd: enumeration of collection

    0 answers - 1090 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    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:

Re: Fwd: enumeration of collection


max 4000 letters.
Your nickname that display:
In order to stop the spam: 1 + 0 =
QUESTION ON "Windows"

EMSDN.COM