Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Win32 File Creation Weirdness, ActivePerl 5.8.8

by imrags (Monk)
on Jul 07, 2009 at 09:11 UTC ( #777817=note: print w/ replies, xml ) Need Help??


in reply to Win32 File Creation Weirdness, ActivePerl 5.8.8

The > operator is redirecting the output to file "id".
Converting => operator to a letter/word like "and" prints the output without printing the ID
I'm getting the result without any ID... This will give u a result sans id

perl -e "for (glob '*') { ($id) = /\d+$/ || /^\d+/; print \"$_\n\"; }"
You can also try this
UPDATED CODE(thanks to cdarke):
perl -e "while (<*>){print $_.\"\n\";}"
Same result
Raghu


Comment on Re: Win32 File Creation Weirdness, ActivePerl 5.8.8
Select or Download Code
Replies are listed 'Best First'.
Re^2: Win32 File Creation Weirdness, ActivePerl 5.8.8
by cdarke (Prior) on Jul 07, 2009 at 09:17 UTC
    Except that <*.*> expects the filename to include a dot. It won't pickup directory names (which generally do not contain a dot) or filenames like README.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://777817]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (16)
As of 2015-07-31 17:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (279 votes), past polls