Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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
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 having an uproarious good time at the Monastery: (10)
As of 2015-07-29 10:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (263 votes), past polls