> Don't forget the g at the end > $x =~ s/\x00//g; Thanks for that. In fact, the nulls I have are always the first character, so I hadn't noticed that gotcha. -- David ___________________________________________________________________ Sheffield Linux User's Group - http://www.sheflug.co.uk/mailfaq.html GNU the choice of a complete generation.