Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Re: Re: Apparent Inconsistencies in Perl Function Naming

by quidity (Pilgrim)
on Nov 26, 2000 at 19:37 UTC ( [id://43376]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Apparent Inconsistencies in Perl Function Naming
in thread Apparent Inconsistencies in Perl Function Naming

That does let you get approximate lenths:

my $length_ish = 10 ** (length(@array) -1)

But then again, that's not the length, it's still just the number of elements in the array. This is nearly an Infrequently Asked Question but not quite.

Replies are listed 'Best First'.
Re: Re: Re: Re: Apparent Inconsistencies in Perl Function Naming
by kael (Monk) on Nov 27, 2000 at 05:44 UTC
    but all you have to do to get the number of elements is
    $length=@a
    Why do people need to complicate matters?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://43376]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2024-04-19 10:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found