Re: split function help

2006-08-29 Thread Dr.Ruud
Ken Foskey schreef: > split( /\s+/, $vob_list ) There is a difference between that and split( ' ', $vob_list ) The latter skips whitespace at the start. perl -e ' $_ = qq{ abc def\tghi\njkl} ; @_ = split /\s+/ ; $" = qq{>\n<} ; print [EMAIL PROTECTED] ' [> \n<} ; print [EMAIL P

Re: split function help

2006-08-29 Thread Mumia W.
On 08/29/2006 08:23 AM, Sayed, Irfan (Irfan) wrote: Hi All, I need to use the split function in perl script. * /vobs/apache_log4j /usr/add-on/puccase_vob01/ccvob01/apache_log4j.vbs public (replicated) Above line i need to split in following order * /vobs/apache_log4j /usr/add-on/puccase

Re: split function help

2006-08-29 Thread Dr.Ruud
"Sayed, Irfan (Irfan)" schreef: > my @vob_path = split(/ /, $vob_list); Maybe you need split(' ', $vob_list) See perldoc -f split. -- Affijn, Ruud "Gewoon is een tijger." -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: split function help

2006-08-29 Thread Ken Foskey
On Tue, 2006-08-29 at 21:23 +0800, Sayed, Irfan (Irfan) wrote: > my @vob_path = split(/ /, $vob_list); where $vob_list contains the I am not crash hot on the split yet, but try split( /\s+/, $vob_list ) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTEC

Re: Split function help

2006-04-25 Thread JupiterHost.Net
Mazhar wrote: Dear Irfan, i think for the code you can try the below, ($some_thing1,$some_thing2,$something_3)=split($test,".") You have the split arguments reversed :) Also, don't use double quotes when there is nothing to interpolate. And space them out so its easier to read :) An

Re: Split function help

2006-04-25 Thread Mazhar
Dear Irfan, i think for the code you can try the below, ($some_thing1,$some_thing2,$something_3)=split($test,".") Regards Mazhar On 4/25/06, Tom Allison <[EMAIL PROTECTED]> wrote: > > Irfan J Sayed wrote: > > Hi, > > > > I have a following line/statement stored in variable $test > > > > de

Re: Split function help

2006-04-25 Thread Tom Allison
Irfan J Sayed wrote: Hi, I have a following line/statement stored in variable $test deliver.Admin_Irfan_Project.20060413.212355 i want to split this line in . and store in array. I am using following code my @name = Split(/./, $test); split uses regular expressions to identify where to spl

Re: Split function help

2006-04-17 Thread M Senthil Kumar
On Mon, 17 Apr 2006, M Senthil Kumar wrote: |On Mon, 17 Apr 2006, Irfan J Sayed wrote: | | ||i want to split this line in . and store in array. ||I am using following code ||my @name = Split(/./, $test); | | |Try escaping "." with a "\". | |HTH, | |Senthil | And oh I forgot: "Split" should have b

Re: Split function help

2006-04-17 Thread nishanth ev
Hello, In case of linux you have to escape the . and the function name should be split and not Split. Not quite sure about windows. Regards Nishanth --- M Senthil Kumar <[EMAIL PROTECTED]> wrote: > On Mon, 17 Apr 2006, Irfan J Sayed wrote: > > > |i want to split this line in . and store in ar

Re: Split function help

2006-04-17 Thread M Senthil Kumar
On Mon, 17 Apr 2006, Irfan J Sayed wrote: |i want to split this line in . and store in array. |I am using following code |my @name = Split(/./, $test); Try escaping "." with a "\". HTH, Senthil -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]