CyCliC has asked for the wisdom of the Perl Monks concerning the following question:
gpu/aps/mcp/mc_server/index.html
gpu/aps/mcp/mca_rtsp/index.html
gpu/oms/subagent/testagent/index.html
sys/netbsd/src/sys/netstreams/index.html
and I use this to delete gpu on the first line:
($str contains "gpu")
but I get this as a result:open(FOUND, "+<found"); $first_line = <FOUND>; $tmp = length $str; $tmp = $tmp +1; $linetmp = substr($first_line, $tmp); print FOUND $linetmp;
gpu/aps/mcp/mc_server/index.html
gpu/aps/mcp/mca_rtsp/index.html
gpu/oms/subagent/testagent/index.html
sys/netbsd/src/sys/netstreams/index.html
gpu/aps/mcp/mc_server/index.html <-- where did this line come from
aps/mcp/mc_server/index.html
please help!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problem with deleting the first n characters on a line
by nysus (Parson) on Jul 18, 2001 at 16:35 UTC | |
|
Re: Problem with deleting the first n characters on a line
by Cubes (Pilgrim) on Jul 18, 2001 at 18:13 UTC | |
|
Re: Problem with deleting the first n characters on a line
by CyCliC (Novice) on Jul 18, 2001 at 17:34 UTC |