MOO-cows Mailing List Archive
[Prev][Next][Index][Thread]
Re: Question
>
> 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
References:
- Question
- From: "James Renken" <renk0006@gold.tc.umn.edu>
Home |
Subject Index |
Thread Index