Hello -
I am trying to scan a UNIX file for a string. I used a filehandle to do
this task - (Below) How would I complete the same taks without using
filehandles? Would it be GREP??
------------------------------
#!/usr/local/bin/perl
open (DD,"/etc/passwd") || die "cannot open: $!";
while (<DD>)
{
if (/cm398/)
{
print "$_ \n";
}
}
thank you
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]