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