Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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 cooling their heels in the Monastery: (3)
As of 2024-07-25 18:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    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.