in reply to Looping through multiple directories
You have specified the file-handle for that I/O as a "wildcard directory", which evaluates to a null file handle.
Update: See Athanasius++ response below - I hade forgotten that <*> is a synonym for glob.
The I/O results in @ARGV being empty, and hanging waiting on STDIN at the next <> operator.
Try changing the first statement to :
And also, use strict and warnings!.@ARGV = glob "/cygdrive/c/Users/abc123/Documents/dude/logs/*.log";
We're living in a golden age. All you need is gold. -- D.W. Robertson.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Looping through multiple directories
by Athanasius (Archbishop) on Dec 26, 2017 at 03:38 UTC | |
by dotowwxo (Acolyte) on Dec 26, 2017 at 06:50 UTC | |
by Athanasius (Archbishop) on Dec 26, 2017 at 07:37 UTC | |
by karlgoethebier (Abbot) on Dec 26, 2017 at 09:43 UTC | |
by dotowwxo (Acolyte) on Dec 26, 2017 at 09:39 UTC | |
by Athanasius (Archbishop) on Dec 26, 2017 at 10:15 UTC | |
by haukex (Archbishop) on Dec 26, 2017 at 15:32 UTC |