I am storing a line of charcaters in a variable
($line) and am trying to search a buffer
for the pattern. I have two issues,
1)
The buffer contains $line but it is preceded
by extra characters (for example 123456$line)
2)
Is there a way to search the buffer using
the variable ($line)? In essence I want to
$buffer =~ /*($variable)/;
but I know that is the wrong syntax, is there
a way to achieve my goal?
Thanks,
Greg
($line) and am trying to search a buffer
for the pattern. I have two issues,
1)
The buffer contains $line but it is preceded
by extra characters (for example 123456$line)
2)
Is there a way to search the buffer using
the variable ($line)? In essence I want to
$buffer =~ /*($variable)/;
but I know that is the wrong syntax, is there
a way to achieve my goal?
Thanks,
Greg