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

  1. Path: sparky!uunet!olivea!veritas!amdcad!bach!ericw
  2. From: ericw@bach.amd.com (Eric Wedaa)
  3. Newsgroups: comp.lang.perl
  4. Subject: help with if ( ! $a =~ /##/ ) PLEASE!!!
  5. Message-ID: <ericw.714945775@bach>
  6. Date: 27 Aug 92 20:02:55 GMT
  7. Sender: usenet@amd.com (NetNews)
  8. Distribution: usa
  9. Organization: Advanced Micro Devices, Inc.
  10. Lines: 22
  11. Nntp-Posting-Host: bach
  12.  
  13. Silly question of the day...  (And I know that 15 minutes
  14. after I post this, and it goes out through the ether, I'll
  15. probably figure it out myself.) 
  16.  
  17. I am having a h!@# of a time getting this code fragment to 
  18. work:
  19.  
  20. if ( ! $a =~ /#/ ){
  21.     some_random_bit_of_perl;
  22. }
  23.  
  24. It never does anything!  What I want it to do is if $a does not 
  25. have "#" in it, then it should do "some_random_bit_of_perl;"
  26.  
  27. What fundamental thing am I missing?
  28.  
  29. >>Ericw
  30. --
  31. Eric Wedaa  -  eric.wedaa@amd.com | Two more kinds of lies...
  32. {ames apple uunet}!amd!ericw      |     Release Dates, and Benchmarks
  33. Advanced Micro Devices, M/S 167 PO Box 3453 Sunnyvale, CA 94088-3453
  34. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  35.