Darby has asked for the wisdom of the Perl Monks concerning the following question:
Now $command is going to be a string like:while (my $command = $ftpgizmo->next_ftp_command ) { print OUT "${command}\n"; }
This is exactly what prints out though. How would I go about making sure that these variables are interpolated so that it prints outcd $FTPPath or type ${TransferMode}
Currently, in the next_ftp_command, I define and set these variables before returning the given string, but this doesn't work.cd /my/ftp/path or type ASCII
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Interpolating strings within strings
by ccn (Vicar) on Sep 29, 2004 at 16:21 UTC | |
by Darby (Sexton) on Sep 29, 2004 at 16:47 UTC | |
by ikegami (Patriarch) on Sep 29, 2004 at 17:44 UTC | |
|
Re: Interpolating strings within strings
by diotalevi (Canon) on Sep 29, 2004 at 16:18 UTC | |
|
Re: Interpolating strings within strings
by amphiplex (Monk) on Sep 29, 2004 at 16:33 UTC |