chorg has asked for the wisdom of the Perl Monks concerning the following question:
I want to interpolate a function result into a string.
Now, I've seen a way to do this using anonymous array refs, but I can't remember where. Anyone? I think it's somewhere in the Camel, but my frenzied flipping has netted me no success. Anyone?# f($x) returns a value # I want to print this string print "Listen f($x), I'll call the organ bank if you dont stop";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using array refs to interpolate a function itno a string?
by chipmunk (Parson) on Dec 13, 2000 at 20:17 UTC | |
|
Re: Using array refs to interpolate a function itno a string?
by jptxs (Curate) on Dec 13, 2000 at 20:09 UTC | |
|
Re: Using array refs to interpolate a function itno a string?
by kilinrax (Deacon) on Dec 13, 2000 at 20:11 UTC | |
|
Re: Using array refs to interpolate a function itno a string?
by Dominus (Parson) on Dec 14, 2000 at 09:10 UTC | |
|
Re: Using array refs to interpolate a function itno a string?
by repson (Chaplain) on Dec 14, 2000 at 10:59 UTC |