Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: How to get an integer sub string between two string

by Anonymous Monk
on Jan 17, 2015 at 08:09 UTC ( [id://1113582]=note: print w/replies, xml ) Need Help??


in reply to How to get an integer sub string between two string

# Address: 100.64.52.98 Time Fri Jan 16 21:44:35 2015 End # ........ ............ .... ... ... .. ..:..:.. .... ... # Address: ............ Time ... ... .. ..:..:.. .... ... my( $stuff, $fri, $jan, $day, $hour, $min, $sec, $y +ear, $end ) = m{Address: (............) Time (...) (...) (..) (..):(..):(..) (....) +(...)}ms;

Replies are listed 'Best First'.
Re^2: How to get an integer sub string between two string
by Krambambuli (Curate) on Jan 17, 2015 at 09:51 UTC
    This will not work when the IP address (or any other field) might have a different length...
    Compare 1.2.3.4 with 111.222.111.222 for example.
      If data isn't fixed length use \S+, perlrequick, its for ppp :)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-04-25 12:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found