in reply to Matching part of a line and saving it into a variable
But have you tried writing any code? If so, perhaps you could share it with us so we can help you solve the problem. Maybe the following template will help:
use strict; use warnings; while (<DATA>) { ... print "Last: $last, First: $first, Initial: $initial\n"; } __DATA__ "Smith, John A.", 23, Red
You may wish to edit the sample data of course.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Matching part of a line and saving it into a variable
by mistamutt (Novice) on Mar 14, 2011 at 08:03 UTC | |
by GrandFather (Saint) on Mar 14, 2011 at 09:46 UTC |