in reply to RE: More File/Directory Trouble
in thread More File/Directory Trouble

While you're correct that the {brackets} around the variables aren't necessary in this case, they're still perfectly legal and necessary in cases where ambiguity exists.
$var = "${one}two$three"; # "1two3" $var = $one . "two$three"; # "1two3"
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.

Replies are listed 'Best First'.
Ack -- Ignore
by Fastolfe (Vicar) on Jul 29, 2000 at 19:53 UTC
    Sometimes the posting code in perlmonks annoys me. Chalk it up to inexperience I guess. See the next post, which I would have preferred would replace the one I'm replying to here.

    Why can't there be a delete function? Heh.