home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / perl / 7459 < prev    next >
Encoding:
Text File  |  1992-12-16  |  1.6 KB  |  43 lines

  1. Newsgroups: comp.lang.perl
  2. Path: sparky!uunet!uunet.ca!cognos!alanm
  3. From: alanm@cognos.com (Alan Myrvold)
  4. Subject: Re: Thanks to all of you that bought camel books!
  5. Message-ID: <1992Dec16.160615.2054@cognos.com>
  6. Organization: Cognos Incorporated, Ottawa CANADA
  7. References: <MERLYN.92Dec8142116@romulus.reed.edu>
  8. Date: Wed, 16 Dec 1992 16:06:15 GMT
  9. Lines: 32
  10.  
  11. In article <MERLYN.92Dec8142116@romulus.reed.edu> merlyn@ora.com (Randal L. Schwartz) writes:
  12. >And be watching *soon* for Learning Perl (which would be getting done
  13. >faster if there wasn't ten new inches of snow on Mt. Hood today....
  14. >ackcckck!) appearing on OR&A shelves around the world.
  15.  
  16. But how does 10" of new snow delay things?  
  17. Were you alpine skiing, telemarking, x-country skate style, 
  18.    x-country classical, or just frustrated at the traffic headaches?
  19. My bet is on Randal being a radical snowboarding dude. :-)
  20.  
  21. I found the tutorial in the Camel book quite good for learning Perl,
  22. but then again, I had read the man page all the way through first.
  23. Plus, how long will Learning Perl exist before it is obsoleted by version 5
  24. changes?
  25.  
  26. ob. perl code :
  27.  
  28. #!/usr/local/bin/perl
  29.  
  30. # lower_files : rename uppercase files with version numbers (ftp'd from VMS)
  31. #               to something sane.
  32. for $f (grep(/[A-Z]/,<*>)) {
  33.    ($g = $f) =~ tr/A-Z/a-z/;
  34.    $g =~ s/;[0-9]+//;
  35.    print "renaming $f to $g\n";
  36.    rename($f,$g);
  37. }
  38. ---
  39. Alan Myrvold          3755 Riverside Dr.    
  40. Cognos Incorporated   P.O. Box 9707          alanm@cognos.com
  41. (613) 738-1440 x3317  Ottawa, Ontario       
  42.                       CANADA  K1G 3Z4       
  43.