Does this work?
while(<FILE>){ print "$_[0] this works\n"; }
Now when you want to add code in an area other than craft you can surround it with <CODE> </CODE> tags to make it appear as code