home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!pitt.edu!rm55
- From: rm55+@pitt.edu (Rudolph T Maceyko)
- Newsgroups: comp.lang.perl
- Subject: dosperl-4.035 problems
- Summary: broken?
- Keywords: dos perl-4.035 broken?
- Message-ID: <3772@blue.cis.pitt.edu.UUCP>
- Date: 26 Jul 92 02:59:40 GMT
- Sender: news+@pitt.edu
- Organization: University of Pittsburgh
- Lines: 69
-
-
- Has anyone had trouble with dosperl-4.035 (the DJGPP one found in
- ftp.umanitoba.ca:/pub/msdos/perl/perl386.zoo)?
-
- It seems that one can only use formats that have the same name as the
- filehandle. Any other setting of $~ results in no output.
-
- The following test program fails doubly under this version of perl, but
- works on the previous (4.019, not DJGPP, also from ftp.umanitoba.ca):
-
-
- #!/usr/bin/perl
-
- $a = 'apples';
- $b = 'banana';
- $c = 'cabins';
-
- format STDOUT_1 =
- @<<<<<<< @<<<<<<< @<<<<<<<
- $a, $b, $c
- .
-
- format STDOUT_2 =
- @>>>>>>> @>>>>>>> @>>>>>>>
- $c, $b, $a
- .
-
- while (<>)
- { $~ = ($. % 2) == 1 ? STDOUT_1 : STDOUT_2;
- write;
- }
-
- __END__
-
-
- The command:
-
- D:\PERL2> perl test.pl
-
- results in a new prompt.
-
-
- I don't use the "while (<>)" in any other script under DOS, so I first
- ran into its not working while running this test program.
-
- When "while (<>)" is changed to "while (1)", there is no real output,
- just the newlines from my hitting return.
-
-
- Also,
-
- D:\PERL2> perl -de 0
-
- never prompts me for input, but it waits for it. Again, all I see is the
- blank screen created by hitting return after return. This might be caused
- by my still using the perl-4.019 perldb.pl.
-
- I don't have these problems with perl-4.035 on any other platform.
-
- And yes, I have set go32=emu d:\perl2\emu387.
-
-
- Thanks,
- Rudy
-
- --
- Rudy Maceyko
- <rm55+@pitt.edu> or <rtm+@cmu.edu>
- Pittsburgh, Pennsylvania USA
-