home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.perl
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!bogus.sura.net!howland.reston.ans.net!sol.ctr.columbia.edu!The-Star.honeywell.com!umn.edu!csus.edu!netcom.com!stevedav
- From: stevedav@netcom.com (Steve Davidson)
- Subject: perl/ms-dos bugs
- Message-ID: <1993Jan25.031629.16341@netcom.com>
- Organization: Netcom - Online Communication Services (408 241-9760 guest)
- Date: Mon, 25 Jan 1993 03:16:29 GMT
- Lines: 21
-
- Environment: Perl4.19 MS-DOS
-
- I have a simple problem:
- I want to list the files in my current directory.
-
- The following programs work in Unix and fail in DOS:
- print join(' ', @ARGV) ; # Execute as: perl -n ls *.*
-
- -- and --
-
- while (<*.*>) {
- print ;
- }
-
- Neither worked under DOS (no MKS toolkit). Can anyone help?
-
- Ultimately, I'd like to write a series of Unix tools in Perl under DOS.
- My first goal is to simulate 'rm -r' in DOS.
- Any suggestions?
-
- Steve Davidson Email: steved@cfcl.com
-