Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Regex help

by damian1301 (Curate)
on Jun 15, 2001 at 20:35 UTC ( #88839=note: print w/ replies, xml ) Need Help??


in reply to Regex help

Yeah, use substr...:

if(length $input >1100){substr($_,0,1100);} # delete everything after 1100 chars


UPDATE: Too bad everyone beat me to it!

Tiptoeing up to a Perl hacker.
Dave AKA damian


Comment on Re: Regex help
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2015-07-04 10:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (59 votes), past polls