Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Chomping most of a _long_ text string

by ihb (Deacon)
on May 29, 2005 at 16:40 UTC ( #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
Node Status?
node history
Node Type: note [id://461536]
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 2020-10-23 11:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (238 votes). Check out past polls.

    Notices?