This is my code
use strict;
use warnings;
my $string=" The UNIX grep filters the lines of a file based on a regular expression.Perl's grep can filter any list of value based on any condition. This Perl code implements a basic version of the UNIX grep: ";
$string =~ m/grep/;
print "$& $'\n";
This is my output:
grep can filter any list of value based on any condition. This Perl code implements a basic version of the UNIX grep:
But I want Output is
grep can filter any list of value based on any condition. This Perl code
Can Anyone help me ??