Jul 22, 2004 #1 EchoCola Programmer Apr 13, 2004 48 US Hello all im trying to split a path with no luck Code: $str = 'C:\one\two\three'; @ray = split("/\\/",$str); print"\n Here is the contents of \@ray: @ray[1]\n"; After this executes it doesn't perfrom the join and it's all put in the first value of the array.
Hello all im trying to split a path with no luck Code: $str = 'C:\one\two\three'; @ray = split("/\\/",$str); print"\n Here is the contents of \@ray: @ray[1]\n"; After this executes it doesn't perfrom the join and it's all put in the first value of the array.
Jul 22, 2004 Thread starter #2 EchoCola Programmer Apr 13, 2004 48 US Nevermind,the problem was with the quotes its supposed to be Code: split(/\\/,$str); NOT Code: split("/\\/",$str); Upvote 0 Downvote
Nevermind,the problem was with the quotes its supposed to be Code: split(/\\/,$str); NOT Code: split("/\\/",$str);