in reply to Re: Defining a function in the caller's package
in thread Defining a function in the caller's package
On second thought, your solution does not work for me, sadly. The problem is that I don't know the package name beforehand. Hence I would have to write something like:
but, as I tried out right now, you can't pass variables to the package statement. Hence I'll have to stick with eval..... do { package $target; ... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Defining a function in the caller's package
by jettero (Monsignor) on Aug 08, 2008 at 12:14 UTC |