Re: Dir Command to an array
- From: "Michael" <mmedwid@xxxxxxxxx>
- Date: 30 Oct 2005 17:40:01 -0800
I tried to initialize the variable using the back-ticks methods on my
XP system. But I get errors:
use strict;
my @allfiles = `dir`;
print $allfiles[0];
print "\n";
yields:
"C:\perldata>windir.pl
Use of uninitialized value in string at C:\perldata\windir.pl line 3."
Also - are back-ticks considered bush-league because they present some
kind of security risk?
.
- References:
- Dir Command to an array
- From: andrewmchorney
- Re: Dir Command to an array
- From: Chris Devers
- Dir Command to an array
- Prev by Date: ftp script in perl
- Next by Date: How to change the Owner of a file
- Previous by thread: Re: Dir Command to an array
- Next by thread: RE: Dir Command to an array
- Index(es):