in reply to Process multiple filenames from command line or STDIN

Here is one node talking about this using wildcard character * in perlscript command line.

Also see : https://blogs.msdn.microsoft.com/dancre/2005/05/15/the-difference-in-wildcard-expansion-between-windows-and-unixmacintosh/

Basically the situation is that under Unix something like "*.pl" will get expanded into all .pl files. On Windows, the user program has to expand the "*.pl" itself.

What O/S are you using?

  • Comment on Re: Process multiple filenames from command line or STDIN

Replies are listed 'Best First'.
Re^2: Process multiple filenames from command line or STDIN
by Katanya (Novice) on Mar 18, 2016 at 22:23 UTC

    But I'm not trying to use a wildcard in the command line, so I'm not sure how this applies to my question.

    I am using Ubuntu.

      Ok. I was thinking in a more complex direction.

      If you have an enumerated list (no wildcards)on the command line, then you need to read multiple things from the command line.

      Assign an array, @names = @ARGV instead of scalar like $names. iterate over the @names.

      please when you update code, do not delete the original post. This just confuses folks.

      update: oh I see that I'm wrong here. I'm doing this on a very small screen and I didn't see it. Oops.