Yes, it works fine (theres´s one character ' in error when I wrote ""'\n", the correct is "\n"). Try for yourself. Josimar
----- Original Message ----- From: "Dan Muey" <[EMAIL PROTECTED]> To: "Josimar Nunes de Oliveira" <[EMAIL PROTECTED]>; "Ronen Kfir" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, June 19, 2003 12:24 PM Subject: RE: readir Just niticed a couple things, no biggie but: > Hi, try this sample code: > > $dir = 'C:\\Folder\\.'; > > print "'\n", $dir; Do you mean print "\n" without the single quote next to the newline ? > > opendir DIR, $dir or die "Cannot open $dir: $!"; > > foreach (@files=readdir DIR){ What is @files for? Couldn't you just do: for(readdir DIR) { print "\n$_"; } > print '"\n", $_; Again the single quote, is that right? And I think you mean . Instead of , in that line to. Which actualy is unneccessary anyway (See example above). Just some thoughts.. Dmuey -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]