transforming small javascript into perl


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers transforming small javascript into perl
# 8  
Old 04-30-2008
I'm sorry if I offended you by writing a new post. I saw that I didn't make myself clear enough with the other one, so I decided to try again in the hope that I could get some help.

Yes I was talking about Perl and yes I don't know anything about programming. That is why I am asking questions in the dummie section.
I'm running html threw a very simple cgi program (if it could be called that) so that I can perform some things that are not possible (at least not as easy) with a normal html page.

Thank you for the suggestions, I'll try them. Hopefully they will work as I planned. Thank you again.
# 9  
Old 05-01-2008
Just as a comment on forum etiquette, it's better to collect all information about a problem in one place. So if you need to add information, you can edit your previous posting (if it hasn't received any replies yet) or follow up with more information.

If you explain the context of what you want to achieve, rather than delve directly into the mechanics of a solution you think will work, somebody might be able to come up with a better solution than the one you were thinking of. It also helps bring out implicit requirements which are not obvious if you only describe the details.

You might be very busy, but in the four weeks you seem to have been grappling with this, you could have spent an afternoon on reading a Perl intro. Even if you are not directly planning to learn Perl, knowing a little about the language will help you ask better questions, and save you time by helping you avoid the "scattershot programming" approach (change the script randomly until you no longer get syntax errors, then wonder why it doesn't do what you hoped it would).
# 10  
Old 05-01-2008
I understand you and see what you mean. I'll try to be more direct in the future. As to the small "program" that I am making: All the big things that I need it to do are ready. I can use it the way it is know and it would to all the things I need, specially with the help you gave me yesterday with:

Quote:
my $geymsla=($leiktid eq "something" ? "do" : "else");
If you see me asking any more questions it will only be to make it faster for me to build the webpage.

Thanks again for all you help
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Transforming data so it looks like the one you specified

Lets say for instance I have this data within a file named transform xxx#yyy@zzz and I want it to be in the format ofZZZ xxx-yyy How do I go about doing this? (3 Replies)
Discussion started by: l3monz
3 Replies

2. Programming

Transforming data to other format

Dear All I would like to transform data from one format to another format. my Input: 0 0 1 0 1 0.308 0 2 0.554 0 3 0.287 output: Z (0,0)= 1 Z (0,1)=0.308 Z (0,2)=0.554 Z (0,3)=0.287 (2 Replies)
Discussion started by: bala06
2 Replies

3. Shell Programming and Scripting

How to call perl web service from javascript?

Hi, I would like to call the below perl web service from javascript .Any help would be appreciated.I am new to web services.Please do the needful. Server Program(Perl Web Service) #!/usr/bin/perl use lib '/usr/lib/perl5/5.8.8/SOAP-Lite-0.65_3/lib'; use SOAP::Transport::HTTP; use Demo;... (3 Replies)
Discussion started by: liyakathali
3 Replies

4. Shell Programming and Scripting

How to use JavaScript in Perl Object Oriented

i am new to Perl CGI Object oriented. I want to use some java script in my Perl CGI but i am not able to do that. I am using Submit button then via param() i am getting all field parameters. But i want to validate all fields first then i want to move. But Use of Java script, i don't know (1 Reply)
Discussion started by: Navrattan Bansa
1 Replies

5. UNIX for Advanced & Expert Users

Transforming psmf to ogv

Hi all. I would like to create a program that converts psmf file format (PSMF - MultimediaWiki) to ogv (Ogg - Wikipedia, the free encyclopedia). I know C++ and I worked with BMPs (so I can understand a simple file system like the BMP header is) but I didn't touch any kind of sound/video file... (1 Reply)
Discussion started by: lilezek
1 Replies

6. Shell Programming and Scripting

transforming records

Hi all In input file I have records like this: 0,1,0,87,0,0,"6,87","170,03",0,"43,5",0,0,0,0,"6,87","126,53" and in output file I need that these records transforms in : 0 1 0 87 0 0 6,87 170,03 0 43,5 0 0 0 0 6,87 126,53 Could you help me in this case? Please (13 Replies)
Discussion started by: shizik
13 Replies

7. UNIX for Dummies Questions & Answers

onChange + javascript in perl CGI - question

Hello all, Am trying to include a onChange java script to my perl CGI application which uses POST method to upload files to file_server This is how I embedded javascript in the perl code that renders CGI application print qq| <script type="text/javascript" src="display.js"> </script>... (4 Replies)
Discussion started by: matrixmadhan
4 Replies

8. Shell Programming and Scripting

Help Required In Transforming A File

How will i convert a file <LREC><L:EPOCH>1198331268.553</L:EPOCH><LDATE>10-12-07</LDATE><L:SERVER>NONE</L:SERVER><L:PORT>NONE</L:PORT><LTIME>13:47:48.553</LTIME><LTEXT>dnvdmxk</LTEXT></LREC>... (3 Replies)
Discussion started by: anju
3 Replies
Login or Register to Ask a Question