Beefy Boxes and Bandwidth Generously Provided by pair Networks BBQ
No such thing as a small change
 
PerlMonks  

Re^3: Comparing adjacent lines

by daccame (Initiate)
on Jul 12, 2012 at 14:27 UTC ( #981410=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Comparing adjacent lines
in thread Comparing adjacent lines

I've been trying out different things and just can't get it to work...any ideas?


Comment on Re^3: Comparing adjacent lines
Re^4: Comparing adjacent lines
by aaron_baugher (Chaplain) on Jul 12, 2012 at 15:29 UTC

    Lots of them, depending on what "doesn't work" means.

    Aaron B.
    Available for small or large Perl jobs; see my home node.

      Right you are, my apologies. The ex values that are not "ex1" (ex1 is produced at a mismatch in the comparison) revert to the default value of ex# (for example, ex18 or ex30) instead of counting up from 1. Basically, what I think is happening is ex1 is not passed on to the else part, since ex values get clobbered after one iteration of the loop. I've been trying variations of an ex variable external to the loop, but can't seem to figure it out.

        I'm still having trouble understanding what you mean. Please post your code, along with about a dozen lines of your input data that demonstrate the problem, as well as what you would like the output from those lines to be.

        Aaron B.
        Available for small or large Perl jobs; see my home node.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://981410]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (18)
As of 2013-05-24 19:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best material for plates (tableware) is:









    Results (512 votes), past polls