in reply to @ARGV and glob

The expansion of wildcards on the command line has nothing to do with Perl. It is a feature of the shell you use.

For example under Windows with the cmd.exe shell, no such automatic expansion of wildcards occurs.

Replies are listed 'Best First'.
Re^2: @ARGV and glob
by lightoverhead (Pilgrim) on Aug 22, 2017 at 15:58 UTC
    oh, I see. Which means the shell actually feeds perl program all the files with ".txt". Thank you for your clear answer.