in reply to Re: Comparison of the row by using window size
in thread Comparison of the row by using window size

Hi Browser,

Can you please explain me the code and difference between the two lines as both of the same seems to be the same statement:

my $row1 = pack 'C*', map 1+int( rand 2 ), 1..100; my $row2 = pack 'C*', map 1+int( rand 2 ), 1..100;

Thanks.

Replies are listed 'Best First'.
Re^3: Comparison of the row by using window size
by SuicideJunkie (Vicar) on Jan 27, 2010 at 14:52 UTC
    The first line is $row1 and the second line is $row2.
    Its building two different random strings for the algorithm to search through.