Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
for a path, the varibles are left out. So if I print out $string I get:$string = "c:/inetpub/vcaserver/miniV/section$in{'pSection'}/p$in{'pSe +ction'}_$in{'pNum'}.html";
c:/inetpub/vcaserver/miniV/section/p_.html
as the outout. How do I get those babies in there? I tried:That works fine, so my varibles are cool, what's wrong here?print "c:/inetpub/vcaserver/miniV/section@{[$in{'pSection'}]}/p$in{'pS +ection'}_$in{'pNum'}.html";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: inserting varibles into a string
by greenFox (Vicar) on Mar 17, 2001 at 19:48 UTC | |
|
Re: inserting varibles into a string
by Chady (Priest) on Mar 17, 2001 at 12:23 UTC | |
|
Re: inserting varibles into a string
by extremely (Priest) on Mar 18, 2001 at 01:09 UTC |