ntest1127 has asked for the wisdom of the Perl Monks concerning the following question:
How do I find all occurrences of string that ends with the characters $$? The value of $rc in the code below is null.
my $matchmember='PARJT$$'; my $target='PARJT## PARJT$$ PARJT##'; my $rc; $rc=grep /$matchmember/,$target;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Need to grep for a string that ends with $$
by toolic (Bishop) on Mar 06, 2012 at 15:48 UTC | |
|
Re: Need to grep for a string that ends with $$
by moritz (Cardinal) on Mar 06, 2012 at 15:48 UTC | |
by ikegami (Patriarch) on Mar 07, 2012 at 00:38 UTC | |
|
Re: Need to grep for a string that ends with $$
by JavaFan (Canon) on Mar 06, 2012 at 15:48 UTC | |
|
Re: Need to grep for a string that ends with $$
by wallisds (Beadle) on Mar 06, 2012 at 15:47 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |