Question

"Nate Massey" (natem@ctdnet.acns.nwu.edu)
Fri, 22 Dec 1995 17:05:38 PST


> 
> How do I make
> 
> /foo/bar/baz
> 
> into
> 
> $whatever:something("foo", "bar", "baz");
> 
> ?
> 

;$string_utils:explode("/foo/bar/baz", "/")
=> {"foo", "bar", "baz"}

$whatever:something(@$string_utils:explode("/foo/bar/baz", "/")) should 
do the trick.  Just use $string_utils:explode to convert the string
into a list, separating it at the given character.

Hope this helps!

--Nate