Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Pearls (not really) of Perl programming

by revdiablo (Prior)
on Nov 24, 2004 at 21:35 UTC ( #410254=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        $default_title =~ s/(.{50}).*/$1/;
        $default_title =~ s/./$ctr++<50?$&:""/ge;
        $default_title = pack "A50", $default_title;
        $default_title = join "", (split //, $default_title)[0..50];
    
  2. or download this
        substr($default_title, 50) = "";
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (8)
As of 2014-11-29 00:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (200 votes), past polls