in reply to Re: extracting data from a line
in thread extracting data from a line
Substr is the most efficient method, and he specified a one line file.#! perl -w open(MYOUTFILE, ">/tmp/design_name_bot"); open (FILEH, "/tmp/strfile"); $_ = <FILEH>; print MYOUTFILE substr($_, rindex($_, '/') +1); close(FILEH); close(MYOUTFILE);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: extracting data from a line
by Random_Walk (Prior) on Oct 23, 2004 at 10:36 UTC |