shiftee has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to call a function using an interpolated string as the parameter.
Can it be done like this or do I need to stick an eval around it or something like that??
my $dirname = "/experiments/$experiment_name"; Fyp::Security::log( "Creating dir $dirname\n" );
I am using strict
Thanks,
Mark
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Pre-evaluate string parameter
by Eliya (Vicar) on Oct 20, 2011 at 15:27 UTC | |
|
Re: Pre-evaluate string parameter
by shiftee (Initiate) on Oct 20, 2011 at 16:34 UTC | |
by AnomalousMonk (Archbishop) on Oct 20, 2011 at 21:35 UTC | |
by GrandFather (Saint) on Oct 20, 2011 at 20:11 UTC | |
|
Re: Pre-evaluate string parameter
by aartist (Pilgrim) on Oct 20, 2011 at 14:43 UTC |