FN> Hey, FN> On an Oct 25 thread, someone asked how to remove trailing spaces. FN> The response was $Value =~ s/\s+$//.
FN> Question. FN> 1. The string upon which this operation was made is on $_ correct? no - $Value. $Value = 'foo '; $Value =~ s/\s+$//; $Value eq 'foo'; FN> 2. If I've made the assignment $tempstring = substr($_ ,0,20) how do I FN> remove trailing spaces from $tempstring? so do $tempstring =~ s/\s+//; hth, daniel -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]