Karyn Williams wrote:
[snip]
So, first question is why is this happenning ? Then how do I fix it ?
What is happening that you didn't want to happen? What is NOT happening that
you did want to happen?
http://www.catb.org/~esr/faqs/smart-questions.html
Also,
there are just a handful of files BUT they are ever changing, so I would
like to not list the statically in the code. Would a
@lists = qw (`ls /usr/local/dir`);
work ?
No, because qw() creates the list ( '`ls', '/usr/local/dir`' ) but this would
work:
chomp( my @lists = qx(ls /usr/local/dir) );
But this would work a lot better:
my @lists = glob '/usr/local/dir/*';
John
--
use Perl;
program
fulfillment
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>