hi!
the following works for me:
$line = "fordGID:54097"; ($match,$data)=split(/[=:]/,$line);
regards, Miha
Ella Cai wrote:
Our codes is like this:
*/$line = "fordGID=54097";/*
*/($match,$data)=split(/[=]/,$line);/*
Right now, sometime $line = "fordGID:54097";
I would like to know can split function support regular expression like if it has either "=" or ":"?
Thanks
Lixin
------------------------------------------------------------------------
Do you Yahoo!?
Yahoo! Mail <http://us.rd.yahoo.com/mail_us/taglines/virus/*http://promotions.yahoo.com/new_mail/static/protection.html> - Helps protect you from nasty viruses.
------------------------------------------------------------------------
_______________________________________________ Perl-Unix-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
_______________________________________________ Perl-Unix-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs