home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / perl / 5600 < prev    next >
Encoding:
Internet Message Format  |  1992-08-29  |  1.1 KB

  1. Path: sparky!uunet!olivea!veritas!amdcad!hobbes!ericw
  2. From: ericw@hobbes.amd.com (Eric Wedaa)
  3. Newsgroups: comp.lang.perl
  4. Subject: Re: help with if ( ! $a =~ /##/ ) PLEASE!!!
  5. Message-ID: <ericw.715048613@hobbes>
  6. Date: 29 Aug 92 00:36:53 GMT
  7. References: <ericw.714945775@bach> <CKD.92Aug27231701@loiosh.eff.org>
  8. Sender: usenet@amd.com (NetNews)
  9. Distribution: usa
  10. Organization: Advanced Micro Devices, Inc.
  11. Lines: 29
  12. Nntp-Posting-Host: hobbes
  13.  
  14. Once again proving, "There's More Than One Way To Do It."
  15.  
  16. >Eric> == Eric Wedaa <ericw@bach.amd.com> 
  17.  
  18. > Eric> I am having a h!@# of a time getting this code fragment to 
  19. > Eric> work:
  20.  
  21. > Eric> if ( ! $a =~ /#/ ){
  22. > Eric>     some_random_bit_of_perl;
  23. > Eric> }
  24.  
  25.  
  26. >if ($a !~ /#/) {
  27. >        some_random_bit_of_perl;
  28. >}
  29.  
  30. and 
  31.  
  32. >if (!($a =~ /#/ )){
  33. >        some_random_bit_of_perl;
  34. >}
  35.  
  36. Thanks!
  37.  
  38. --
  39. Eric Wedaa  -  eric.wedaa@amd.com | Two more kinds of lies...
  40. {ames apple uunet}!amd!ericw      |     Release Dates, and Benchmarks
  41. Advanced Micro Devices, M/S 167 PO Box 3453 Sunnyvale, CA 94088-3453
  42. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  43.