home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / perl / 5679 < prev    next >
Encoding:
Text File  |  1992-09-02  |  1.1 KB  |  41 lines

  1. Newsgroups: comp.lang.perl
  2. Path: sparky!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!convex!news.utdallas.edu!corpgate!crchh327!news!veals
  3. From: veals@crchh606.bnr.ca (Percy Veals)
  4. Subject: Why does this cause a core dump??
  5. Message-ID: <VEALS.92Sep2103648@crchh606.bnr.ca>
  6. Sender: news@bnr.ca (News on crchh327)
  7. Nntp-Posting-Host: crchh606
  8. Organization: Bell Northern Research
  9. Date: Wed, 2 Sep 1992 15:36:48 GMT
  10. Lines: 29
  11.  
  12. Why does this fragment of code cause a core dump?
  13.  
  14.  
  15.   $data{'myfile$data'} = "myfile.data";
  16.   foreach ( keys %data ) {   
  17.      rename($_, $data{$_}) || warn "Data file not found\n";
  18.   }
  19.  
  20. I am running Perl4.035 on a HPUX 7.05 box. My old copy of 
  21. perl4.019 also dumps core. 
  22.  
  23. Cheers--Percy Veals
  24. --
  25. -----------------------------------------------------------------
  26. Percy Veals    #include <disclaimer.h>     Bell-Northern Research
  27.                                            2201 Lakeside
  28. E-mail: veals@bnr.ca                       Richardson, TX 
  29. Voice: (214) 684-4843
  30. -----------------------------------------------------------------
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.