Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Saved's scratchpad

by Saved (Beadle)
on May 25, 2009 at 09:41 UTC ( #765994=scratchpad: print w/ replies, xml ) Need Help??

#!/usr/bin/perl #<"Grep.pl"> Grep Profile Info File undef $/; $INFOFILE="/admin/users/diebelr/llProfile.out"; open (IFILE, "$INFOFILE") || die ("Cannot open $INFOFILE\n"); @finfo=split(/\n+(?=\n)/, <IFILE>); #@finfo=split(/\n{2,}/, <IFILE>); $tRecsInfo = @finfo; print "$tRecsInfo"; print "I read ", scalar(@finfo), " RECORDS\n"; @MATCHING = (); @MATCHING = grep(/\b@ARGV[0]\b/, @finfo); $MATCHED = @MATCHING; print "@MATCHING"; print "\n$MATCHED Entries Matched\n"; #if ($str !~ /^\s*$/){print "yes";print OUT $str;}
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2016-06-28 09:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (356 votes). Check out past polls.