; 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.

r.


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

Reply via email to