Erlang/OTP Forums

Author Message

<  Yaws mailing list  ~  Newbie parse_post question

Guest
Posted: Fri Dec 22, 2006 2:31 am Reply with quote
Guest
How do i get same effect on parse_post tuple result like i get with for example:
P = {"key","value"},
S = element(2,P),

and it of course gives "value" result, but when i post data to R =
yaws_api:parse_post(Arg) i also get result {"key","value}, only when i
try S = element(2, R) the return is error:

Reason: {badarg,[{m3,out,1},
{yaws_server,deliver_dyn_part,8},
{yaws_server,aloop,3},
{yaws_server,acceptor0,2},
{proc_lib,init_p,5}]}

I hoped that i would grasp Erlang and Yaws in 2 to 3 weeks but it
seems it will take 2 to 3 months just for basics Sad

Also when i extract element from tuple how do i return it without
quotes, i.e. "value" to become just value?

Thanks Smile

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist
Guest
Posted: Fri Dec 22, 2006 2:35 am Reply with quote
Guest
Also where could i find some great tutorial for pattern matching,
better yet if it's erlang related? Smile

On 12/22/06, Pat e <patrickerj@gmail.com> wrote:
> How do i get same effect on parse_post tuple result like i get with for example:
> P = {"key","value"},
> S = element(2,P),
>
> and it of course gives "value" result, but when i post data to R =
> yaws_api:parse_post(Arg) i also get result {"key","value}, only when i
> try S = element(2, R) the return is error:
>
> Reason: {badarg,[{m3,out,1},
> {yaws_server,deliver_dyn_part,8},
> {yaws_server,aloop,3},
> {yaws_server,acceptor0,2},
> {proc_lib,init_p,5}]}
>
> I hoped that i would grasp Erlang and Yaws in 2 to 3 weeks but it
> seems it will take 2 to 3 months just for basics Sad
>
> Also when i extract element from tuple how do i return it without
> quotes, i.e. "value" to become just value?
>
> Thanks Smile
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum