in reply to hash reference

I agree with Zaxo, but to answer your question, you could change this
$share = $1; ####### to $share = $1; ####### $smbconf{$share} = ();


-Lee

"To be civilized is to deny one's nature."