in reply to eval sub
Because you combine block and string. What you have is equivalent to:
All you're executing is a string in void context. You don't want a block here - the code you have is in a string, so you want to do string eval. Hence, you ought to be doingeval {"Hello!"}
eval $config->{client}->{1}->{file}->{1}->{executeInternal};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: eval sub
by samip (Novice) on Oct 09, 2008 at 20:25 UTC | |
by almut (Canon) on Oct 09, 2008 at 21:11 UTC | |
by samip (Novice) on Oct 10, 2008 at 13:49 UTC | |
by almut (Canon) on Oct 10, 2008 at 14:41 UTC |