I am using $` but it does not display any output.
There's nothing before /^/ in the matched variable, so there's nothing in $`.
The solution is to stop overwriting the value you want.
my $prev; while (<>) { print($prev) if /^Func_file_permission$/; $prev = $_; }
In reply to Re: filehandle regex
by ikegami
in thread filehandle regex
by pinnacle
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |