If all you are wanting to do a change a scalar variable then you just did it
and answered your own question.

Try:
$value = "View Data";
print "$value\n";
$value = "View_Data";
print "$value\n";

If what you are trying to do here is turn all spaces into underscores then
you need a regex something like:
$value = "View Data";
$value =~ s/\s/_/g;
print "$value\n";

Hope this helps.

Kind regards,
Trevor J. Joerges
--------------------------------------------
$_=q;rrUSFWPSZK.ZKPFSHFT,rkvtuZbopuifsZQZibdl
rrqpxfsfeZcyZQ,,riuuq://xxx.%.dpn,ru~@%.dpn ,rrr8-)
;;s;\~;kpfshft;g;s;\%;tfoenjnf;g;y;B-x;A-w;;
s;P;perl;g;s;,;\n;g;s;Y; ;g;s;q;\t;g;print;
--------------------------------------------

----- Original Message -----
From: "Johnno" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 23, 2002 7:54 AM
Subject: [Perl-unix-users] Changing values


: How do i change $value="View Data" to $value="View_Data";
:
: Many Thanks,
:                         Johnno
:
:
: _______________________________________________
: Perl-Unix-Users mailing list
: [EMAIL PROTECTED]
: To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
:


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

Reply via email to