home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!spool.mu.edu!yale.edu!ira.uka.de!chx400!sicsun!sic!brossard
- From: brossard@sic.epfl.ch (Alain Brossard EPFL-SIC/SII)
- Newsgroups: comp.lang.perl
- Subject: Why is <...> going to stdout?
- Message-ID: <4227@sicsun.epfl.ch>
- Date: 7 Nov 92 14:34:09 GMT
- Sender: news@sicsun.epfl.ch
- Lines: 32
-
-
- I have the following piece of code which somehow outputs to
- stdout and I can't figure out why! I'm it didn't use to do this before
- some extensive changes to other parts of my script.
-
- print STDERR "Before\n";
- foreach $f ( <$ftp_dir/${patch_ID}*>,
- <${loc412}/${patch_ID}*>,
- <${loc413}/${patch_ID}*> ) {
- next if $f =~ /\*$/;
- next if $f =~ /$patch_id/o;
- next if $f =~ /$patch_ID-$prev_rev/o;
- unlink $f;
- }
- print STDERR "\nAfter\n";
-
-
- What I get on stdout (or stderr?) is:
-
- Before
- /u/ftp/pub/sun-patches/100483-02.README/u/ftp/pub/sun-patches/100483-02.tar.Z/export/mnt/4.1.2/100483-02/export/mnt/4.1.2/4.1.3/100483*
- After
-
-
- I'm sure it is coming from this piece of code because I put a print
- before and after to bracket the problem.
-
- This occur on sunOS 4.1.3 using perl 4.019 and perl 4.035.
-
-
- Alain Brossard
- brossard@sic
-