home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!veritas!amdcad!bach!ericw
- From: ericw@bach.amd.com (Eric Wedaa)
- Newsgroups: comp.lang.perl
- Subject: help with if ( ! $a =~ /##/ ) PLEASE!!!
- Message-ID: <ericw.714945775@bach>
- Date: 27 Aug 92 20:02:55 GMT
- Sender: usenet@amd.com (NetNews)
- Distribution: usa
- Organization: Advanced Micro Devices, Inc.
- Lines: 22
- Nntp-Posting-Host: bach
-
- Silly question of the day... (And I know that 15 minutes
- after I post this, and it goes out through the ether, I'll
- probably figure it out myself.)
-
- I am having a h!@# of a time getting this code fragment to
- work:
-
- if ( ! $a =~ /#/ ){
- some_random_bit_of_perl;
- }
-
- It never does anything! What I want it to do is if $a does not
- have "#" in it, then it should do "some_random_bit_of_perl;"
-
- What fundamental thing am I missing?
-
- >>Ericw
- --
- Eric Wedaa - eric.wedaa@amd.com | Two more kinds of lies...
- {ames apple uunet}!amd!ericw | Release Dates, and Benchmarks
- Advanced Micro Devices, M/S 167 PO Box 3453 Sunnyvale, CA 94088-3453
- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-