Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Finding missing numbers in a list

by BrowserUk (Patriarch)
on Sep 03, 2004 at 16:52 UTC ( [id://388342]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use List::Util qw[ reduce ];
    my @in = ( 41888, 41889, 41890, 41892, 41895 );
    ...
    print @missing;
    
    41891 41893 41894
    
  2. or download this
    my @in = ( 41888, 41889, 41890, 41892, 41895 );
    my @missing;
    ...
    print @missing;
    
    41891 41893 41894
    

Log In?
Username:
Password:

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

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

    No recent polls found