The following code uses readline's use of $/ as the line ender.
{ # Temporarily set $/. local $/ = "This is the temp line.\n"; <>; } while ( <> ) { print; }
Thanks Roy Johnson for the tip on the spelling error.
In reply to Re: Reading a file from any arbitrary place in the file.
by diotalevi
in thread Reading a file from any arbitrary place in the file.
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |