Johnno wrote:
> 
> How do i change $value="View Data" to $value="View_Data";

I guess you mean you want to substitue all spaces with underscores?
  $value =~ tr/ /_/;

If you need any number of consecutive spaces to be a single underscore:
  $value =~ tr/ /_/s;

If you need any amount of white space to be a single underscore:
  $value =~ s/\s+/_/g;

See perldoc perlop and perldoc perlre

--
  Simon Oliver
_______________________________________________
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to