in reply to Matching for the second,fourth, and fifth word in a text
local undef $/; open(FILE,"<printfile"); my $_ = <FILE>; # slurp close (FILE); print "printer '$1' $2 - $3\n" while (/^printer\s+(\w+)\s+\w+\s+(\w+)\ +.\s+(\w+)/msg); __OUTPUT__ 'llp' idle - enabled 'ps' idle - enabled
Dingus
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Matching for the second,fourth, and fifth word in a text
by Aristotle (Chancellor) on Dec 11, 2002 at 13:53 UTC |