Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

injunjoel's scratchpad

by injunjoel (Priest)
on Jun 01, 2004 at 16:28 UTC ( #358188=scratchpad: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @arr = 1 .. 20;
    my @excludes = (1,3,5,7,9,11,13,15,17,19);
    ...
    @arr = grep $_, @arr;
    
    print join(" : ", @arr)."\n";
    
  2. or download this
    use DBI;
    #connect and stuff. create the DB handle
    ...
    
    $sth->execute(@hash{(sort keys %hash)});
    
  3. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    {
        return join('',(map{m/\d\d/?$bvals{$_}:()}split(/(\d\d)/,unpack("b
    +$_[0]->[0]",$_[0]->[1]))));
    }
    
  4. or download this
        "Oranges and lemons", say the bells of St. Clement's
        "You owe me five farthings", say the bells of St. Martin's
    ...
        Here comes a candle to light you to bed
        And here comes a chopper to chop off your head!
        Chip chop chip chop - The last man's dead. 
    
  5. or download this
    sub vector_diff
    {
    ...
        }
        return @output;
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (12)
As of 2015-07-28 22:54 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 (260 votes), past polls