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

Re^9: greater efficiency required (ls, glob, or readdir?)

by ikegami (Patriarch)
on Aug 27, 2008 at 21:37 UTC ( [id://707325]=note: print w/replies, xml ) Need Help??


in reply to Re^8: greater efficiency required (ls, glob, or readdir?)
in thread greater efficiency required (ls, glob, or readdir?)

Remember, the file name is a variable in this discussion, so you're method of calling cat is unacceptable. First fix the major bug that your script treats file names as shell commands, then you'll notice it's silent.

Update: eh? It's suppose to be. Since when does open output error messages on its own!

$ PATH=/tmp /usr/bin/perl -we 'open my $fh, "-|", "cat", "/etc/motd"' Can't exec "cat": No such file or directory at -e line 1.

Replies are listed 'Best First'.
Re^10: greater efficiency required (ls, glob, or readdir?)
by JavaFan (Canon) on Aug 27, 2008 at 21:42 UTC
    You are too cryptic for me here, I do not understand what you mean.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2024-04-19 11:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found