RE: Silly problem

2001-11-04 Thread Gary L. Armstrong
Your regex is wrong. $line is not storing the IP in that case. $line =~ /^(\d+\.\d+.\d+\.\d+)/; #Extact the IP address Should be /^(\d+\.\d+\.\d+\.\d+)/ #See the missing char? Forgot to escape your second dot. OK, so that might match anyway but sloppy regex can be quite nasty. I did this just

Re: Silly problem

2001-11-03 Thread Michael D. Risser
kenberg [mailto:[EMAIL PROTECTED]] > Sent: Friday, November 02, 2001 16:19 > To: [EMAIL PROTECTED] > Subject: Silly problem > > > G'day All, > > I have this very very simple problem that I can't figure out. Basically > I have a 1 line text file with an IP address in it

RE: Silly problem

2001-11-02 Thread Wagner-David
92.168.0.2 199.88.22.111 Wags ;) -Original Message- From: Daniel Falkenberg [mailto:[EMAIL PROTECTED]] Sent: Friday, November 02, 2001 16:19 To: [EMAIL PROTECTED] Subject: Silly problem G'day All, I have this very very simple problem that I can't figure out. Basically I hav

Silly problem

2001-11-02 Thread Daniel Falkenberg
G'day All, I have this very very simple problem that I can't figure out. Basically I have a 1 line text file with an IP address in it like so... 192.168.0.2 Now all I want to do is open this file up and extract the IP address from it. Now the good thing is I can do this OK but whenever I extr