Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: How can I extract part of a string after a specific character

by greenFox (Vicar)
on Jul 11, 2002 at 05:28 UTC ( #180949=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # split
    my ($key, $string1) = split /=/, $_, 2;
    print "$key, $string1\n";
    
  2. or download this
    #re 1
    /^TITLE=(.*)/;
    ...
    # substr
    my $string4 = substr($_, 6);
    print "$string4\n";
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2023-02-02 07:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer not to run the latest version of Perl because:







    Results (16 votes). Check out past polls.

    Notices?