Re: basic pattern matching

2001-11-13 Thread EternalLifeThereAfter
- Original Message - From: "Gibbs Tanton - tgibbs" <[EMAIL PROTECTED]> To: "'HANSON '" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Saturday, November 10, 2001 8:06 AM Subject: RE: basic pattern matching > You can look at perld

Re: basic pattern matching

2001-11-10 Thread Brett W. McCoy
On Fri, 9 Nov 2001, HANSON wrote: > I am traversing a multidimensional hash searching for a value and > trying to delete it. However, I am ending up deleting the wrong one. > The value I'm looking for is /name/. There is also a value of /name1/ > in the hash. When I use =~/name/ it deletes the na

Re: basic pattern matching

2001-11-10 Thread Jonathan E. Paton
Hi, > where ^ matches start of string > and where matches end of string Should be "and where $ matches end of string. Jonathan Paton __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts ht

Re: basic pattern matching

2001-11-10 Thread Jonathan E. Paton
Hi, The problem reduced to a level I can solve: Match "name" but not "name1" etc Solution: Use ^ and $ assertions where ^ matches start of string and where matches end of string hence use /^name$/ Hope that is clear enough :) Jonathan Paton __

basic pattern matching

2001-11-10 Thread Durga_Prasad
Placed At : BOM Durga Prasad@SATYAM 11/10/2001 04:09 PM Code please... Durga Prasad I am traversing a multidimensional hash searching for a value and trying to delete it. However, I am ending up deleting the wrong one. The value I'm looking for i

RE: basic pattern matching

2001-11-09 Thread Wagner-David
, November 09, 2001 15:46 To: [EMAIL PROTECTED] Subject: basic pattern matching Hi gurus! I am traversing a multidimensional hash searching for a value and trying to delete it. However, I am ending up deleting the wrong one. The value I'm looking for is /name/. There is also a value of /name1

RE: basic pattern matching

2001-11-09 Thread Gibbs Tanton - tgibbs
quot;; print "2" if "chris" =~ /chris/; print "3" if "chris" =~ /^chris$/; This will print out 123. You can look at perldoc perlre for regular expression help and perldoc perlop for help on eq and its relatives. Hope this helps! Tanton -Original Messa

basic pattern matching

2001-11-09 Thread HANSON
Hi gurus! I am traversing a multidimensional hash searching for a value and trying to delete it. However, I am ending up deleting the wrong one. The value I'm looking for is /name/. There is also a value of /name1/ in the hash. When I use =~/name/ it deletes the name1 value somehow. Is there