home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.perl
- Path: sparky!uunet!munnari.oz.au!cs.mu.OZ.AU!koonda.acci.com.au!ggr
- From: ggr@koonda.acci.com.au (Greg Rose)
- Subject: Re: help with if ( ! $a =~ /##/ ) PLEASE!!!
- Message-ID: <9224112.13645@mulga.cs.mu.OZ.AU>
- Sender: news@cs.mu.OZ.AU
- Organization: Australian Computing and Communications Institute
- References: <ericw.714945775@bach>
- Date: Fri, 28 Aug 1992 02:44:06 GMT
- Lines: 12
-
- In article <ericw.714945775@bach> ericw@bach.amd.com (Eric Wedaa) writes:
- >I am having a h!@# of a time getting this code fragment to
- >work:
- >
- >if ( ! $a =~ /#/ ){
- Well, if $a has anything in it, !$a is false and won't match.
- Anyway, you can use the "doesn't match" version:
-
- if ($a !~ /#/) {
- --
- Greg Rose Australian Computing and Communications Institute
- ggr@acci.com.au +61 3 282 2532
-