sysopen(TOPIC, "$root/content/topics/$get{'topic'}", O_WRONLY); $/ = ""; while(<TOPIC>) { if( /^$get{'post'}/ ) { s/.*\n$/$post/m; } } close(TOPIC);
In reply to modifying a line in a file with some restrictions by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |