home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / perl / 7610 < prev    next >
Encoding:
Internet Message Format  |  1992-12-24  |  778 b 

  1. Path: sparky!uunet!pipex!bnr.co.uk!uknet!mcsun!sunic!seunet!enea!sommar
  2. From: sommar@enea.se (Erland Sommarskog)
  3. Newsgroups: comp.lang.perl
  4. Subject: Re: Dynamic grepping
  5. Message-ID: <1992Dec24.235537.10028@enea.se>
  6. Date: 24 Dec 92 23:55:37 GMT
  7. References: <1992Dec23.155457.15647@rchland.ibm.com> <1992Dec24.124843.5926@cs.ruu.nl>
  8. Organization: Enea Data AB
  9. Lines: 14
  10.  
  11. Piet van Oostrum (piet@cs.ruu.nl) writes:
  12. >>>>>> cwalker@rchland.vnet.ibm.com (Cary Walker) (CW) writes:
  13. >CW> unshift(@checkstrs, "1111foo222");
  14. >CW> unshift(@checkstrs, "foofoo");
  15. >CW> $grepstr="\d";
  16. >
  17. >Make that $grepstr="\\d";
  18.  
  19. Or better $grepstr = '\d';
  20.  
  21. No reason to double a backslash when you don't need to.
  22. -- 
  23. Erland Sommarskog - ENEA Data, Stockholm - sommar@enea.se
  24. Jag gav en k{ck tjeck en check.
  25.