Hey all,

I heard there were a few people here who knew a bit about Perl :)

Is there an easy way to split "123456" into "12-34-56"?

I've been splitting with a basic // into an array, and then printing 2 array elements 
at a time, sorta like:

$array[0] . $array[1] 

So - is there an easier way?

Thanks in advance.

-- 
Phil.
---------------------------------------------------
                                           (_ )
UNIX is "user-friendly",                \\\", ) ^
it's just picky about its friends!        \/, \(
                                         cXc_/_)
---------------------------------------------------

Reply via email to