in reply to RE: More File/Directory Trouble
in thread More File/Directory Trouble
Certainly both of these methods achieve the same result, but there are instances when putting two variables together in a double-quoted string is more legible or needed for other reasons. In these cases, surrounding the variable name in brackets is necessary.$var = "${one}two$three"; # "1two3" $var = $one . "two$three"; # "1two3"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Ack -- Ignore
by Fastolfe (Vicar) on Jul 29, 2000 at 19:53 UTC |