print $arr[15]."\n";
<nit>That is the 16th line.</nit>
Also, why not just interpolate into the string rather than using concatenation?
print qq{$arr[14]\n};
Cheers,
JohnGG
In reply to Re^2: Going to a specific line in a file.
by johngg
in thread Going to a specific line in a file.
by Jayesh Nair
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |