SPUG: scalar(@array)

Daniel V. Ebert debert at dusya.osd.com
Thu Apr 13 18:31:00 CDT 2000


Thanks to everyone who sent me suggestions.  I think I've got the problem licked!

Thanks.

Dan.

You wrote:
> What about doing $#array?
>
> Ryan Christianson
>
>
> On Thu, 13 Apr 2000, Jeremy Mates wrote:
>
> > The count you were probably expecting to see can be gained by doing
> > something like:
> >
> > for ( @array ) {
> > $count++ if defined;
> > }
> > print $count, "\n";
> >
> > --
> > Jeremy Mates                           (206) 221-4714   Fax: 685-7301
> > Systems Administrator                  K353-B, Health Sciences Center
> > http://www.mbt.washington.edu/         Box 357730
> > University of Washington               Seattle, WA, 98195
> >
> >
> > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> > POST TO: spug-list at pm.org       PROBLEMS: owner-spug-list at pm.org
> > Seattle Perl Users Group (SPUG) Home Page: http://www.halcyon.com/spug/
> > SUBSCRIBE/UNSUBSCRIBE: Replace "action" below by subscribe or unsubscribe
> > Email to majordomo at pm.org: "action" spug-list your_address
> >
> >
> >
>
>
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> POST TO: spug-list at pm.org       PROBLEMS: owner-spug-list at pm.org
> Seattle Perl Users Group (SPUG) Home Page: http://www.halcyon.com/spug/
> SUBSCRIBE/UNSUBSCRIBE: Replace "action" below by subscribe or unsubscribe
> Email to majordomo at pm.org: "action" spug-list your_address
>
>
---
Dan Ebert
Seanet Internet Services
(206)343-7828

 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     POST TO: spug-list at pm.org       PROBLEMS: owner-spug-list at pm.org
 Seattle Perl Users Group (SPUG) Home Page: http://www.halcyon.com/spug/
 SUBSCRIBE/UNSUBSCRIBE: Replace "action" below by subscribe or unsubscribe
           Email to majordomo at pm.org: "action" spug-list your_address





More information about the spug-list mailing list