I'm not particularly good with perl.

I have a string $DS{$chr}{name} which is "pyrite-cpu-util" I'd like two
strings, one containing the "pyrite" and another the "cpu-util" (that is,
I want to split the string on the first occurance of a dash)

probably as soon as I post this I'll stop being lazy and figure out how to
do it myself ...

ideas?

mrb

maybe some regular expression like

([a-z]+)\-(.+)



____________________
BYU Unix Users Group 
http://uug.byu.edu/ 
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to