Hi,
I'm currently running this version of Perl in my MS Windows XP machine.
[blue]This is perl, v5.8.8 built for MSWin32-x86-multi-thread
(with 33 registered patches, see perl -V for more detail)
Copyright 1987-2006, Larry Wall
Binary build 819 [267479] provided by ActiveState Built Aug 29 2006 12:42:41[/blue]
Why can't I use egrep? I'm seeing this error if I change grep to egrep in my script:
[red]Undefined subroutine &main::egrep called at code3.pl line 5, <FILE> line 4.[/red]
Regards
viadisky
I'm currently running this version of Perl in my MS Windows XP machine.
[blue]This is perl, v5.8.8 built for MSWin32-x86-multi-thread
(with 33 registered patches, see perl -V for more detail)
Copyright 1987-2006, Larry Wall
Binary build 819 [267479] provided by ActiveState Built Aug 29 2006 12:42:41[/blue]
Why can't I use egrep? I'm seeing this error if I change grep to egrep in my script:
[red]Undefined subroutine &main::egrep called at code3.pl line 5, <FILE> line 4.[/red]
Code:
D:\PERL\Sample Perl Scripts\CODE>type code3.pl
#!C:\Perl\bin\perl.exe
open (FILE, '<file.txt')or die "$!\n";
@result = egrep (/\"apple\"/i, <FILE>);
print @result;
close (FILE);
Regards
viadisky