#!/usr/bin/perl open(RAVEN,";; #ignore 2 lines $line=; #stff everything on 1 line please @stuff=split(//,$line); #split it up local $/=undef; $raven=; #read ascii art $raven =~s/#/$stuff[$i++]/mge; #use # as marker for text open(OUT,">out.pl"); print OUT '#!/usr/bin/perl',"\n\n",$raven; #write it close(OUT);