Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: A split ing headache

by tilly (Archbishop)
on Dec 12, 2000 at 09:11 UTC ( [id://46214]=note: print w/replies, xml ) Need Help??


in reply to A split ing headache

Try that with:
$line = join "|", split /:/, $string, $count;
and you will be able to see what was split and joined. Then compare with what it says in split.

When I do it it works just like the big old book says.

BTW you might find the following string more instructive than your current one:

$string = 'a:b:c:::';

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2025-05-20 10:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.