Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??
use warning;

Should be:

use warnings;
$ncc = 0; $pc = 0; $fc = 0;

Should be:

my $ncc = 0; my $pc = 0; my $fc = 0;
sub fileA_ext() {

Should be:

sub fileA_ext {
while (@array = <FileA>) {

Should be:

my @array = <FileA>;
foreach $line(@array) {

Should be:

foreach my $line ( @array ) {
$name1 = "$1"; $score1 = "$12";

Should be:

$name1 = $1; $score1 = $12;
foreach $line (@tmp1) {

Should be:

foreach my $line ( @tmp1 ) {
my $name2 = "$1"; substr($name2, -13) = ''; my $score2 = "$12";

Should be:

my $name2 = $1; substr($name2, -13) = ''; my $score2 = $12;
sub FileB_ext() {

Should be:

sub FileB_ext {
while (@array = <FileB>) {

Should be:

my @array = <FileB>;
foreach $line(@array) {

Should be:

foreach my $line ( @array ) {
my $name3 = "$1"; my $score3 = "$12";

Should be:

my $name3 = $1; my $score3 = $12;
foreach $line (@tmp2) {

Should be:

foreach my $line ( @tmp2 ) {
my $name4 = "$1"; substr($name4, -13) = ''; my $score4 = "$12";

Should be:

my $name4 = $1; substr($name4, -13) = ''; my $score4 = $12;
sub check() {

Should be:

sub check {
foreach $data1 (@arr1) {

Should be:

foreach my $data1 ( @arr1 ) {
my $ep1 = "$1"; my $s1 = "$2";

Should be:

my $ep1 = $1; my $s1 = $2;
foreach $data2 (@arr2) {

Should be:

foreach my $data2 ( @arr2 ) {
my $ep2 = "$1"; my $s2 = "$2";

Should be:

my $ep2 = $1; my $s2 = $2;
if ( $ep1 eq $ep2 && $s1 =~ m/-/g) {

Should be:

if ( $ep1 eq $ep2 && $s1 =~ m/-/) {
if ( $ep1 eq $ep2 && $s1 !~ m/-/g && $s1 > 50 && $ +s2 > 40) {

Should be:

if ( $ep1 eq $ep2 && $s1 !~ m/-/ && $s1 > 50 && $s +2 > 40) {
if ( $ep1 eq $ep2 && $s1 !~ m/-/g && $s1 < 50 && $ +s2 < 40) {

Should be:

if ( $ep1 eq $ep2 && $s1 !~ m/-/ && $s1 < 50 && $s +2 < 40) {

In reply to Re: Perl: How to perfectly match specific data between two files and do comparison? by jwkrahn
in thread Perl: How to perfectly match specific data between two files and do comparison? by WWq

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • Outside of code tags, you may need to use entities for some characters:
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • 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 wandering the Monastery: (13)
    As of 2014-08-21 15:08 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      The best computer themed movie is:











      Results (136 votes), past polls