|
|
| "be consistent" | |
| PerlMonks |
extracting data from an input file and associated errorsby rakshas (Novice) |
| on Feb 02, 2012 at 23:28 UTC ( #951557=perlquestion: print w/ replies, xml ) | Need Help?? |
|
rakshas has asked for the
wisdom of the Perl Monks concerning the following question:
Hi,
I have the following format of data in a text file. I can successfully read it from the file
___________________________________________________________
-rw-r--r-- 1 next users 2153 Jan 1 10:50 mytake_120.115.152.136.csv ___________________________________________________________ I want to extract "120.115.152.136" and use it so I wrote the following script. _________________________________________________________ As I have said earlier, I want to extract "120.115.152.136", hence I am using the regex. It just prints "Match" but also gives an error Use of uninitialized value $_ in pattern match (m//) at C:\Perl_Scripts\Compare.pl line 31. Any Help will be much appreciated. Regards Vivek
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||