From: ts Date: 2003-11-19T20:17:17+09:00 Subject: Re: $& write-protected? >>>>> "S" == Simon Strandgaard writes: S> How do I assign my regexp-result to $& ? $& is read-only S> irb(main):001:0> $& = "test" it depend what you want to do /test/ =~ "test" # $& ==> "test" -- Guy Decoux