Then something like this: my($var1,$var2,$var3,$var4,$var5) = split(/\/,$string); BTW, to avoid confusion, you should probably be referring to "one variable" as "one scalar", or something more specific.
-----Original Message----- From: Javeed SAR [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 2:15 PM To: Timothy Johnson Subject: RE: splitting string My requirement is like this: Soarian_Context_Sensitive_Coordination_File ---> in one variable. test---> in one variable train---> in one variable sun1---> in one variable M:---> in one variable TIA Regards Javeed -----Original Message----- From: Timothy Johnson [ mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> ] Sent: Friday, August 09, 2002 6:42 PM To: Javeed SAR; [EMAIL PROTECTED] Subject: RE: splitting string I think your subject answers your question: split() the string. E.g. @path = split(/\/,$string); should give you the right result. -----Original Message----- From: Javeed SAR [ mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> ] Sent: Friday, August 09, 2002 2:07 PM To: [EMAIL PROTECTED] Subject: splitting string hi All, I have string as given below: M:\sun1\train\test\Soarian_Context_Sensitive_Coordination_File >From this string i need to split indivually and get Soarian_Context_Sensitive_Coordination_File ---> in one variable. test ---> in one variable train ---> in one variable sun1 ---> in one variable M: ---> in one variable Regards Javeed Regards Javeed