Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

RE: Blessables -- What Can You Make Into Objects?

by perlmonkey (Hermit)
on Apr 21, 2000 at 05:30 UTC ( #8314=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    package Cleaner;
    sub new 
    $foo = "\t\tFOO\t\t";
    print $foo, "\n";
  2. or download this
    package main;
    $c = new Cleaner;
        'blessed' => sub { my $bar = $foo; $c->clean($bar) },
        'normal'  => sub { my $bar = $foo; $bar =~ s/^\s+|\s$//g },
  3. or download this
    Benchmark: timing 1000000 iterations of blessed, normal...
       blessed: 43 wallclock secs (36.50 usr +  0.14 sys = 36.64 CPU)
        normal: 28 wallclock secs (24.19 usr +  0.08 sys = 24.27 CPU)

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2015-11-27 12:29 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (727 votes), past polls