# Reading perl variable in flash 8

**URL:** <https://forum.kirupa.com/t/reading-perl-variable-in-flash-8/259916>\
**Category:** Uncategorized\
**Created:** [May 10, 2008, 3:19am UTC](https://forum.kirupa.com/t/reading-perl-variable-in-flash-8/259916 "2008-05-10T03:19:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bh\_pradipta](https://avatars.discourse-cdn.com/v4/letter/b/7c8e57/32.png) [@bh\_pradipta](https://forum.kirupa.com/u/bh_pradipta)\
**Post date:** [May 10, 2008, 3:19am UTC](https://forum.kirupa.com/t/reading-perl-variable-in-flash-8/259916/1 "2008-05-10T03:19:16Z")

</div>

Hi I have got a perl (aa.pl) file which is giving a output like name=alpha&status=1. Now I want to trace them in flash 8, as2 . I am using load vars but I am unable to extract the variables. The following is the code which I have used .

[SIZE=4]var lv:LoadVars=new LoadVars();[/SIZE]  
[SIZE=4]lv.load(“load2var.pl”)[/SIZE]  
[SIZE=4]lv.onLoad=function (status){[/SIZE]  
[SIZE=4]trace (lv.name)[/SIZE]  
[SIZE=4]}[/SIZE]

output

[SIZE=4]undefined[/SIZE]

This is what I am receiving in the output can anybody help?

If insted of \*.pl file I use a .txt file I am getting the desired output.

---

<div class="post-metadata">

**Author:** ![bh\_pradipta](https://avatars.discourse-cdn.com/v4/letter/b/7c8e57/32.png) [@bh\_pradipta](https://forum.kirupa.com/u/bh_pradipta)\
**Post date:** [May 14, 2008, 12:13pm UTC](https://forum.kirupa.com/t/reading-perl-variable-in-flash-8/259916/2 "2008-05-14T12:13:43Z")

</div>

nobody has worked with flash and cgi??? strange !!!

---

<div class="post-metadata">

**Author:** ![bh\_pradipta](https://avatars.discourse-cdn.com/v4/letter/b/7c8e57/32.png) [@bh\_pradipta](https://forum.kirupa.com/u/bh_pradipta)\
**Post date:** [June 2, 2008, 6:17am UTC](https://forum.kirupa.com/t/reading-perl-variable-in-flash-8/259916/3 "2008-06-02T06:17:31Z")

</div>

can flash load variable direclty from any CGI script. It needs only to load not send any variable
