Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^3: Best way to compare range of characters in two text files

by kcott (Archbishop)
on Jul 13, 2018 at 07:17 UTC ( [id://1218424]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    ...
    my $oshort_line = substr( $oline, 0, 49 );
    ...
    my $nshort_line = substr( $nline, 0, 49 );
    ...
    
  2. or download this
    $ perl -E 'my $x = "X" x 49 . "Y" x 49; say substr $x, 0, 49'
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    $ perl -E 'my $x = "X" x 49 . "Y" x 49; say substr $x, 0, 50'
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXY
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-19 23:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found