Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
$thisstring = "abjdkwosyksljadfkjadfaduifalkdjfaslflksdf";Now assume that "abjdk" and "adfkj" can be the equivalent of "H" (I can easily write my own sub to evaluate whether a given part of the string is an equivalent) then i'd like to be able to do something like:
$thisstring =~ /H/;Is there any way to do this. Ideally I suppose i'd like to put a function instead of the H. If I can do this its going to make my cunning task extremely simple.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: is this a regexp question ?
by chipmunk (Parson) on Jun 04, 2001 at 05:35 UTC | |
|
Re: is this a regexp question ?
by bikeNomad (Priest) on Jun 04, 2001 at 02:39 UTC | |
|
Re: is this a regexp question ?
by jorg (Friar) on Jun 04, 2001 at 04:42 UTC | |
by ar0n (Priest) on Jun 04, 2001 at 05:14 UTC | |
|
Re: is this a regexp question ?
by Anonymous Monk on Jun 04, 2001 at 21:10 UTC |