in reply to Re^2: variable has value but then become empty
in thread variable has value but then become empty
Please, please, please put your code in <code></code> tags as I said above. Many Monks won't even bother to look at a question that isn't formatted, especially when it's already been pointed out previously.
Have you tried printing out the variable after each modification to itself to see what the value is?
$public_key_type = scalar <DATA> for 1; print ">$public_key_type<\n"; $public_key_type =~ s/^\s+//; print ">$public_key_type<\n"; $public_key_type =~ s/\s+$//; print ">$public_key_type<\n"; $public_key_type =~ s/\R//g; print ">$public_key_type<\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: variable has value but then become empty
by Randy_j53 (Novice) on Sep 09, 2015 at 18:34 UTC | |
by AnomalousMonk (Archbishop) on Sep 09, 2015 at 22:13 UTC |