Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Re: Re: subtract one array from another

by zigdon (Deacon)
on Oct 17, 2002 at 13:55 UTC ( #206023=note: print w/replies, xml ) Need Help??


in reply to Re: Re: subtract one array from another
in thread subtract one array from another

Don't you need a -1 there someplace?
perl -le ' @a = qw/a b c d/; print scalar @a; print $#a; __DATA__ output: 4 3 '

-- Dan

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://206023]
help
Chatterbox?
[holli]: gtg, l8er you lovely bunch

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2017-11-21 14:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (302 votes). Check out past polls.

    Notices?