How do I convert a variable $zcat string that say is "United States" to "United_States"
I know the following converts the "/" in the string to "space" (or perhaps just strips it?) and puts into a new variable $mycatname...
@mycatname = split(/\//, $zcat);
Is there a similarly short command for changing all spaces in a variable to underscores?
(I did warn it was a newbie question!)
m.
I know the following converts the "/" in the string to "space" (or perhaps just strips it?) and puts into a new variable $mycatname...
@mycatname = split(/\//, $zcat);
Is there a similarly short command for changing all spaces in a variable to underscores?
(I did warn it was a newbie question!)
m.