greatshots has asked for the wisdom of the Perl Monks concerning the following question:
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.#!/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";
I have no clue what is happening. could any one explain me ?<th width="200px">KPI</th><th width="100px">Type</th><th width="75px"> +Data Type</th>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: split function against a HTML code
by atcroft (Abbot) on Nov 26, 2007 at 06:38 UTC | |
|
Re: split function against a HTML code
by localfilmmaker (Novice) on Nov 26, 2007 at 06:20 UTC | |
by greatshots (Pilgrim) on Nov 26, 2007 at 06:44 UTC | |
by mreece (Friar) on Nov 26, 2007 at 15:28 UTC | |
by greatshots (Pilgrim) on Nov 26, 2007 at 08:59 UTC | |
|
Re: split function against a HTML code
by erroneousBollock (Curate) on Nov 26, 2007 at 06:21 UTC |