manan.patel has asked for the wisdom of the Perl Monks concerning the following question:
please help me for these how i use these module? Thanks !#!/usr/bin/perl use strict; use warning; $abc = $ARGV[0] ; $def = $ARGV[1] ; open (abc,"$abc") ; open (def, "$def"); while (<abc>){ if ($flag eq 1 ) { push (@abc ,$_); $flag =0; } if (/123/ ) { #$_ =~ s/^\s+// ; push (@abc ,$_); if (/\\/){ $flag = 1; } } } while (<def>){ if ($flag eq 1 ) { push (@def ,$_); $flag =0; } if (/123/ ) { push (@def ,$_); if (/\\/){ $flag = 1; } } } foreach $abc (@abc ) { foreach $def (@def) { if ($abc eq $def) { $flag1 =1; break } } if ($flag1 eq 0){ print $abc; } $flag1 =0; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How i can use getopt in my script?
by kcott (Archbishop) on Apr 25, 2014 at 07:38 UTC | |
|
Re: How i can use getopt in my script?
by choroba (Cardinal) on Apr 25, 2014 at 07:43 UTC | |
|
Re: How i can use getopt in my script?
by karlgoethebier (Abbot) on Apr 25, 2014 at 09:12 UTC | |
|
Re: How i can use getopt in my script?
by Anonymous Monk on Apr 25, 2014 at 07:39 UTC |