jc23 has asked for the wisdom of the Perl Monks concerning the following question:
unless ($string =~$flag) s/$string/"yay found it"/g;
However, that didn't seem to work. Anyone know why? What i specifically want is to append the year '2003' to the end of a list, if it is not already included in the string. However, the tricky thing is I can't just search for the string 2003, because it might be tacked on as a range eg. 2000-2003. Any solutions are welcome.
Thanks!
jc
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: strings that dont contain
by blue_cowdawg (Monsignor) on Jul 24, 2003 at 18:53 UTC | |
by jc23 (Acolyte) on Jul 24, 2003 at 20:02 UTC | |
|
Re: strings that dont contain
by Limbic~Region (Chancellor) on Jul 24, 2003 at 19:15 UTC | |
|
Re: strings that dont contain
by roju (Friar) on Jul 24, 2003 at 20:03 UTC | |
|
Re: strings that dont contain
by LameNerd (Hermit) on Jul 24, 2003 at 19:04 UTC | |
|
Define your problem first! (was Re: strings that dont contain)
by dragonchild (Archbishop) on Jul 24, 2003 at 18:52 UTC |