in reply to Interpolating inside Net::DNS
That's not to say you can't do it, of course. You can either use eval, as in:
or else you can use a symbolic reference:$var1=rr_add $update->push(update => eval "${var1}('foo.example.com. 86400 A 192.16 +8.1.2'))");
no strict 'refs'; $var1=rr_add $update->push(update => $var1->('foo.example.com. 86400 A 192.168.1.2' +))");
Both of these code snippets are untested, but they should get you pointed in the right direction.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Interpolating inside Net::DNS
by Roghue (Initiate) on May 11, 2004 at 19:52 UTC |