
Mel
Deleted
May 21, 2000, 6:17 AM
Post #1 of 2
(171 views)
|
|
Excluding certain lines when writing from an array
|
Can't Post
|
|
This is what I need help with: this is waht I have: opendir(USRS, "$rootdir"); @usrs = readdir (USRS); closedir(USRS); open(USRS, ">$rootdir\/usrstemp.dat"); That above opens the folder, reads all of it's contents into @usrs and then closes and the dir and then opens the file I want to print @usrs to. Now, I want it to print <OPTION SELECTED>$line</OPTION>\n to USRS for each $line that IS the "name of a folder", or it could just print "any line that doesnot contain a period somewhere in it". I have tried and tried and I can't figure out a way to do this. If you could help it would be great! Thanks, Mel
|