in reply to Re: expanding quoted referenced data
in thread expanding quoted referenced data
my $lamb; my $mary="Little Rabbit Foo Foo "; $lamb->{data}[0] = 'wolf'; my $text = '$mary had a little $lamb->{data}[0].'; $text =~ s/(.*)/"\"$1\""/ee; print $text,"\n"; __END__ Little Rabbit Foo Foo had a little wolf.
but then, there's an extra space between "Foo Foo" and "had", since $mary's got it. Maybe $mary =~s/^\s|\s$/g, then.
--shmem
_($_=" "x(1<<5)."?\n".q·/)Oo. G°\ /
/\_¯/(q /
---------------------------- \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
|
|---|