rodbass63 has asked for the wisdom of the Perl Monks concerning the following question:
### # Thanks in advance!#!/usr/bin/perl use warnings; use strict; my $git_dir = "/tmp/yum_sorted.log"; open(DIR,$git_dir) or die "Really bad!$!"; my @yum = <DIR>; foreach my $line ( @yum ) { open(IN_GIT, "/tmp/git_sorted.log") or die "Really, re +ally bad $!"; my @in_git = <IN_GIT>; foreach my $x ( @in_git ) { if ( $line =~ $x ) { print "We found a match: $line\n"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Breaking out of a loop
by poj (Abbot) on May 12, 2013 at 14:19 UTC | |
by NetWallah (Canon) on May 12, 2013 at 19:16 UTC | |
|
Re: Breaking out of a loop
by kennethk (Abbot) on May 12, 2013 at 13:55 UTC |