Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Sinistral's scratchpad

by Sinistral (Monsignor)
on Aug 15, 2007 at 16:05 UTC ( [id://632778]=scratchpad: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $thing_to_find = 'needle';
    my @haystack = ('needle', 'hay', 'more hay', 'yet more hay');
    my $needle_count = scalar(grep { /^$thing_to_find$/ } @haystack);
    
  2. or download this
    sub getAnswer {
      my $ans;
    ...
      chomp($ans);
      return $ans;
    }
    
  3. or download this
    sub pad {
      my ($str, $padSize, $padChar, $dir) = @_;
    ...
      }
      return $str;
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2024-10-06 10:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The PerlMonks site front end has:





    Results (43 votes). Check out past polls.

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.