Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
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.

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
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 wandering the Monastery: (9)
As of 2016-06-30 18:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (400 votes). Check out past polls.