in reply to Can perl do...?
> But why cant we modify a static string, sure it is "static" but if during execution perl creates a (non existant) variable to store it in.
You could try something like:
use strict; my $foo = "bar"; my $test = sub { my $string = "$foo out"; $string =~ s/b/f/; return $s +tring }; print &$test,"\n";
It's not really what you were asking for, but it lets you modify a string, and still have it seem static afterwards.
Paris Sinclair | 4a75737420416e6f74686572 pariss@efn.org | 205065726c204861636b6572 I wear my Geek Code on my finger.
|
|---|