Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Chomping most of a _long_ text string

by ihb (Deacon)
on May 29, 2005 at 16:40 UTC ( [id://461536]=note: print w/replies, xml ) Need Help??


in reply to Chomping most of a _long_ text string

# Find the mark. $str =~ /_{70}/ and substr($str, 0, $+[0], ''); # Replace everything up to right after # the match with the empty string.

ihb

See perltoc if you don't know which perldoc to read!

Replies are listed 'Best First'.
Re^2: Chomping most of a _long_ text string
by ysth (Canon) on May 29, 2005 at 17:10 UTC
    See perltoc if you don't know which perldoc to read!
    I would actually recommend starting with perldoc perl, not perltoc.

      Both documents are great, but I get the feeling perltoc is a far less known document, so I prefer to spread that instead. perltoc is right to the target if you're looking for documentation, just like perlfunc is when looking for functions.

      (Reading "See perldoc perl" might also feel like the ultimate RTFM slap.)

      ihb

      See perltoc if you don't know which perldoc to read!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-04-25 21:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found