in reply to An Elegance Question
or, for more funforeach (@story) { s/\[(.*?)\]/$hash{$1}/g; print; }
The same effect could be achieved with the variable names you're reading into now, but would require the use of symbolic references, the use of which would probably get you dragged out into the street and shot here:)map { s/\[(.*?)\]/$hash{$1}/g; print } (@story);
|
---|
Replies are listed 'Best First'. | |
---|---|
RE: Re: An Elegance Question
by Simplicus (Monk) on Apr 13, 2000 at 22:39 UTC |