$str = 'line 5<br>line 4<br>line 3<br>line 2<br>line 1<br>'; @lines = split('<br>',$str); unshift (@lines,'line 6'); $output = join('<br>',@lines); print $output;
In reply to Re^3: truncating a text file
by aquarium
in thread truncating a text file
by dankichi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |