http://www.perlmonks.org?node_id=652920

greatshots has asked for the wisdom of the Perl Monks concerning the following question:

monks,

#!/usr/bin/perl use strict; use warnings; my $string = qq[<th width="200px">KPI</th><th width="100px">Type</th>< +th width="75px">Data Type</th>]; my @result = split('>',$string); print "Check :",$#result,"\n";
When I execute the above code I am able get the expected result (i,e) The split with '>' is working as expected. But If I store the below into a file and through file read if I apply the split it is not working as expected.
<th width="200px">KPI</th><th width="100px">Type</th><th width="75px"> +Data Type</th>
I have no clue what is happening. could any one explain me ?