Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Truncating Last Sentence

by japhy (Canon)
on May 14, 2004 at 20:38 UTC ( [id://353486]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if (length($str) > 1000) {
      substr($str, 1+rindex($str, '.', 1000)) = "";
    }
    
  2. or download this
    #!/usr/bin/perl
    
    ...
    regex     42520/s       --     -43%     -66%
    rxsubstr  75202/s      77%       --     -40%
    rcindex  125559/s     195%      67%       --
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (7)
As of 2024-04-23 20:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found