Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: perl sucks

by Dietz (Curate)
on Sep 27, 2006 at 06:02 UTC ( #575087=note: print w/replies, xml ) Need Help??


in reply to perl sucks

package ACME::WeightWatchers; use Carp; require Exporter; our @ISA = qw(Exporter); our @EXPORT = 'watchsize'; sub watchsize { local $/ = "\n"; my $caller = caller; open _, "$caller::$0"; while (<_>) { $. == 40 and confess "no more Perl for me, unless less than 40 lines\n"; } }

#!/usr/bin/perl use strict; use warnings; use ACME::WeightWatchers; watchsize(); # your code here ... print "I made it under 40!\n";

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (10)
As of 2016-09-28 16:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (533 votes). Check out past polls.