Do echo "0" >c first.
perl -MCGI -i -e 'while(<>){s!(\d+)!$t=$1+1!e;print}print CGI->new->h +eader,$t' c
JJ
Update: Removed useless semicolon.
Update 2: Even smaller now!
In reply to (jj808) Re: (zdog) Re: One-Line Web Counter
by jj808
in thread One-Line Web Counter
by Jerry
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |