in reply to appending file name

Take a look at perlop - Comma Operator. [Note that you've created a (hidden) file: .txt]

To concatenate strings, use the join function or the '.' operator (see perlop - Additive Operators).

-- Ken

Replies are listed 'Best First'.
Re^2: appending file name
by marinersk (Priest) on Jul 17, 2013 at 16:09 UTC
    Just a note, it wouldn't be hidden on a Windows system simply because it starts with the dot; that's *nix behavior. But you probably knew that. :-)