I've a class (blessed, of course :)) that has variables like:
$self->a = "1";
$self->b = "2";
$self->c = [ '1', '2', '3', '4' ];
Now, I want to write a foreach loop to iterate through $self->c and print
the values. However:
foreach my $foo ( $self->c ) {
print $foo;
}
gets me the whole list (1, 2, 3, 4) in $foo instead of one-by-one. What I am
doing wrong? I am sure I am missing something very basic here. I would
appreaciate your responses.
Thanks
Rajesh Dorairajan
Valicert/Tumbleweed Communications.
[EMAIL PROTECTED]
650-216-2018
http://www.tumbleweed.com