amearse has asked for the wisdom of the Perl Monks concerning the following question:
Here is the output:#!/usr/bin/perl -w use strict; my $hacklist = "hack.txt"; open HACK, $hacklist or die "Can't Open $hacklist"; my ($octet, $date); while (<HACK>){ $octet ||= $_ if /($hacklist =~ m~((\d{1,3}\.){3}\d{1,3})~)/; $date ||=$_ if /Date:/; } close HACK; print $date; print $octet;
Forever indebted to your wisdom. -amearseDate: Monday, April 23, 2001 02:45 PM Use of uninitialized value in print at C:\hack\hack.pl line 19.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Octet Regex
by kschwab (Vicar) on Apr 27, 2001 at 23:52 UTC | |
by amearse (Sexton) on Apr 28, 2001 at 00:02 UTC | |
|
Re: Octet Regex
by Sprad (Hermit) on Apr 27, 2001 at 23:51 UTC | |
|
Re: Octet Regex
by MeowChow (Vicar) on Apr 27, 2001 at 23:58 UTC |