Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Splitting a string... Duh?

by Django (Pilgrim)
on Sep 16, 2002 at 17:17 UTC ( [id://198305]=note: print w/replies, xml ) Need Help??


in reply to Splitting a string... Duh?

Since you need just one element of the strings, you don't need to use split. Here is a simple regex solution:

while (<DATA>) { m|(.+?)/| and push @ServerNames, $1; }

Originally posted as a Categorized Answer.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (2)
As of 2024-04-26 04:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found