On Mon, Aug 28, 2000 at 11:44:06AM +1100, Russell Davies wrote:
> ; garfield:~# ascii ^@
> ; ASCII 0/0 is decimal 000, hex 00, octal 000, bits 00000000: called ^@, NUL
> ; Official name: Null
> ; 
> ;      So it's just a null so something like
> ; 
> ; print $c unless ($c = 0);
> 
> no, that's wrong.
> 
> -     you're assigning not comparing.
> -     what are you comparing? (what happens if you get a '0' in your
>       input, or if you've converted to ascii value first, why are you
>       printing this value and not the character itself?)
> -     this construct will yield poorer performance than a regexp.
> 

        Mental note, don't attempt to write perl code as soon as you get
up after having been up all night trying to write something in java when you
keep telling yourself how much easier it would be in C.

> r.
> 
> 
> --
> SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
> More Info: http://slug.org.au/lists/listinfo/slug



-- 
John


--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug

Reply via email to