$str = "135"; substr($str, 1, 1) = "234"; print $str; This should give you "12345";
$str1 = "01"; $str2 = "1"; print "equal as numbers\n" if ($str1 == $str2); print "equal as strings\n" if ($str1 eq $str2);
In reply to Re: lvalue - howto fix?
by pg
in thread lvalue - howto fix?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |