missingthepoint has asked for the wisdom of the Perl Monks concerning the following question:
OK, there is a chance I'm just tired and missing something obvious, but this is very strange:
c:\blah> dir 07/10/2008 08:45 PM <DIR> 16 07/10/2008 08:45 PM <DIR> 17 07/10/2008 08:24 PM <DIR> 18 07/10/2008 08:45 PM <DIR> 19 19/03/2009 09:44 AM <DIR> 20- Foo bar bat 30/10/2008 10:25 AM <DIR> 21 Baz bat qux 07/10/2008 08:45 PM <DIR> 22- Shiver me timbers ...
c:\blah> perl -e "for (glob '*') { my ($id) = / (\d+)$/ || /^(\d+)/; print \"$_ => id=$id\n\"; }"
Prints nothing, but CREATES A FILE called 'id' with content:
16 ==1 17 ==1 18 ==1 19 ==1 20- Foo bar bat ==20 21 Baz bat qux ==21 22- Shiver me timbers ==22 23 ==1 ...
What is going on here?
Infos: perl, v5.8.8 built for MSWin32-x86-multi-thread, Binary build 816 [255195] provided by ActiveState
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Win32 File Creation Weirdness, ActivePerl 5.8.8
by Corion (Patriarch) on Jul 07, 2009 at 08:45 UTC | |
by missingthepoint (Friar) on Jul 07, 2009 at 08:51 UTC | |
Re: Win32 File Creation Weirdness, ActivePerl 5.8.8
by jwkrahn (Abbot) on Jul 07, 2009 at 09:29 UTC | |
by missingthepoint (Friar) on Jul 07, 2009 at 09:59 UTC | |
by AnomalousMonk (Archbishop) on Jul 07, 2009 at 16:44 UTC | |
by missingthepoint (Friar) on Jul 07, 2009 at 22:23 UTC | |
by AnomalousMonk (Archbishop) on Jul 07, 2009 at 22:47 UTC | |
Re: Win32 File Creation Weirdness, ActivePerl 5.8.8
by imrags (Monk) on Jul 07, 2009 at 09:11 UTC | |
by cdarke (Prior) on Jul 07, 2009 at 09:17 UTC |