SPUG: routine in foreach iterator
William Rowden
rowdenw at eskimo.com
Wed May 16 13:45:05 CDT 2001
Today, James Moore wrote:
> I'm not sure what you're trying to accomplish with @{}.
If one has an array reference, rather than the array itself, one
gets the array via @{$arrayref}. Does the subroutine return an
array or a reference to an array?
> Jeff Saenz wrote:
> > for example could i do this
> >
> > foreach (@{sub_call()}) {
> > do something
> > }
--
-William
PGP key: http://www.eskimo.com/~rowdenw/crypt/pgp/rowdenw.asc
Fingerprint: 00C9 6887 F073 A261 CE06 EC88 7D75 13BD 1221 2BA9
I like the way you talk.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
POST TO: spug-list at pm.org PROBLEMS: owner-spug-list at pm.org
Subscriptions; Email to majordomo at pm.org: ACTION LIST EMAIL
Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
For daily traffic, use spug-list for LIST ; for weekly, spug-list-digest
Seattle Perl Users Group (SPUG) Home Page: http://www.halcyon.com/spug/
More information about the spug-list
mailing list