[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Sheflug] Quick PERL job



 
> I'm wading through regular expressions in the Camel book at 
> the moment in the hope of spotting the answer, but perhaps 
> someone could short-circuit my readings?
> 
> In a script, I need a way to change a string that may have 
> nulls in it to printables only.
> 
> I'd guess there's a pattern-binding operator and bit of 
> magic, but I haven't got it yet...:-)
> 

Oops - hit SEND too early...

$cleanstring =~ s/\x00//;

-- 
D
___________________________________________________________________

Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html

  GNU the choice of a complete generation.