Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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

by quidity (Pilgrim)
on Nov 26, 2000 at 19:37 UTC ( #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.


Comment on Re: Re: Re: Apparent Inconsistencies in Perl Function Naming
Download Code
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
Node Status?
node history
Node Type: note [id://43376]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2014-08-02 08:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who would be the most fun to work for?















    Results (55 votes), past polls