Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: store rest of the lines in a array after a matching pattern is found

by roboticus (Chancellor)
on May 17, 2018 at 17:29 UTC ( [id://1214767]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if ( $str =~ m/^ServiceCategoryName=(.*)/) {
    
  2. or download this
    if ( $str =~ m/^ServiceCategoryName=(.*)/) {
       print $str;
    ...
       my @array = split /,/, $1;
       print "my string ", $array[0], "\n";
    }
    

Log In?
Username:
Password:

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

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

    No recent polls found