in reply to Re: Global symbol
in thread Global symbol
Perhaps you shouldn't try and offer advice if you don't understand things . . .
At any rate, he's building up a string to pass to eval using a heredoc. Since he hasn't explicitly wrapped the terminator token in single quotes it will interpolate variables like a double quoted string. And since @array will interpolate in a double quoted string he's backwhacking the initial @ since he wants the literal text my @fields = ($val =~ /$ivalue/...); (... being the interpolated contents of $modifiers). What actually gets passed to eval doesn't have any extraneous backwhacks in it. The next obvious step in debugging this is would be to print out the code that's misbehaving when being passed to eval (or printing the code if $@ is set after the eval indicating problems).
The cake is a lie.
The cake is a lie.
The cake is a lie.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Global symbol
by psini (Deacon) on Jun 19, 2008 at 14:54 UTC | |
by Narveson (Chaplain) on Jun 21, 2008 at 05:11 UTC | |
|
Re^3: Global symbol
by shekhar (Initiate) on Jun 20, 2008 at 05:18 UTC |