Hi,
Thanx a lot.
This is working.
Now i am facing another problem.
$dir='D:\\';
opendir(DIR, $dir)
@dots = readdir(DIR);
print $dots[0];
nothing is displaying on the screen.
what might be the problem ???
Here i want the contents of the directory in the array dots.
thanks,
snitch
: : Hi there,
: :
: : This code snippet is not working.
: :
: : #!C:\Perl\bin\perl.exe
: :
: : print "Content-type: text/html\r\n\r\n";
: :
: : print "<Head>";
: : print "<Title>";
: : print "Temp";
: : print "</Title>";
: : print "<body>";
: :
: : @temp = {1,2,3};
: : print "$temp[0]";
: :
: : the output is
: :
: : HASH(0x17ff06c)
: :
: : donno y ??
: : any help ???
: :
: : thanks in advance
: :
: : curcio,
: : snitch
:
: You declared the @temp variable wrong. To initialize an array, you do it like this:
: @temp = (1..3); # initializes 1 through 3
:
: or you can even do something like this:
: @nums = (0..8,11,15,22..33);
:
: Hope this helps.
:
: X
: