in reply to Input Output Question
#!/usr/bin/perl use strict; while (<DATA>) { print if ( /^name:\s\w+\s?\w+/ ... /^.*$/ ); } __DATA__ name: John Doe 23 name: Jane Doe 37 test: asdas name: Joe Doe 12
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Input Output Question
by coco (Initiate) on Jul 07, 2009 at 08:09 UTC | |
by toolic (Bishop) on Jul 07, 2009 at 14:44 UTC |