For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > December 2004 > Bash to Perl/C









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Bash to Perl/C
John

2004-12-26, 3:55 am

Hi,

I need to write a really quick perl AND/OR c program that does what this
bash loop below:


----------------------------------------------------
while true
do
Q=A ; echo $Q > /tmp/A
Q=B ; echo $Q > /tmp/B
done
----------------------------------------------------

Also, it would be great if this program in addition to writing value of
variable to /tmp file, assigned value of this variable to shell variable so
it was visible to the shell that started this app.


Thanks
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com