jdhedden has asked for the wisdom of the Perl Monks concerning the following question:
This simple example assumes you're in a directory with only files (no sub-dirs). The following works fine:
However, the following:my @files = <*>; io($files[0]) > io('/tmp/'. $files[0]);
complains as follows:my @files = io('.')->all_files; io($files[0]) > io('/tmp/'. $files[0]);
Undefined behavior for overloaded IO::All operation: 'unknown > unknown' at /usr/lib/perl5/site_perl/5.8.2/IO/All.pm line 840.
What's wrong?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: IO::All problem/bug?
by dragonchild (Archbishop) on Mar 19, 2004 at 20:02 UTC | |
by jdhedden (Deacon) on Mar 19, 2004 at 21:11 UTC | |
by Aristotle (Chancellor) on Mar 20, 2004 at 08:39 UTC |