kasi ramanathen wrote:
> $t="perl";
> while($ln=~m/$t/g)
> {
> print "it matches..";
> }
>
Hi Kasi,
The part above shoul;d work, because this does:
#!/usr/bin/perl -w
use strict;
my $Test = "Hi";
my $Greeting = "Hi, there. How are you?";
if ($Greeting =~ /$Test/) {
print "$Greeting\n";
hi friends,
i have a problem in work i want to use a variable in the place of
pattern to be matched, but i don't know how? but some great brain some ware
in the world will be knowing it.
hear i explain the program, when i use the patter i get the right
output when i store it in variable t and
Kasi ramanathen wrote:
> hi friends,
>
> i have a problem in work i want to use a variable in the place of
> pattern to be matched, but i don't know how? but some great brain
> some ware in the world will be knowing it.
>
> hear i explain the program, when i use the patter i get the right
> output
hi friends,
i have a problem in work i want to use a variable in the place of pattern to be
matched, but i don't know how? but some great brain some ware in the world will be
knowing it.
hear i explain the program, when i use the patter i get the right output when i store
it in variable t and
> dear friends:
Howdy
>
> i have a simple doubts in reguler exepration see the the
> passage that follows is stored in a variable by name v. in
> the fifth line see the words like this "Next 20 ^ " now i
> want delete all the charecter before ^- sign in my variable v.
>
> shall i use find and
dear friends:
i have a simple doubts in reguler exepration see the the passage that follows is
stored in a variable by name v. in the fifth line see the words like this "Next 20 ^ "
now i want delete all the charecter before ^- sign in my variable v.
shall i use find and replace to find all th