Ton Hospel <[EMAIL PROTECTED]> wrote:

> > And here is my entry with an improved golf score of 16. :)
> > #!/usr/bin/perl -lp
> > $.-1or$_.=v0
> > 
> #!/usr/bin/perl -p0
> s/$/\0/m
> 
> (use a hard \0)

An alternative, since we're not doing one-liners:

#!/usr/bin/perl -p0
s/
/\0
/

-- 
Keith C. Ivey <[EMAIL PROTECTED]>
Washington, DC

Reply via email to