Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Sinistral's scratchpad

by Sinistral (Monsignor)
on Aug 15, 2007 at 16:05 UTC ( #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? | Other CB clients
Other Users?
Others examining the Monastery: (1)
As of 2023-09-28 04:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?