2,452 Topics
![]() | |
Hi, I would like to automate some of my actions on command prompt using perl. can u plz help me how to start with it. Like I want to connect to oracle database and run a sql query. How do I do that? Here are the steps that I need … | |
Hi, I am trying to find and replace a particular string in a file and save that file. Here is what I did, where I am writing the output after replacement into new file. I was trying to avoid to open the file for writing and try to use just … | |
Hi, I am trying to write the output generated by a simple command "dir" to a file. Can you please help me do that? Here is what I am doing -- system ("dir"); this will run dir command on my D: drive now, I want to write this ouput (in … | |
Hey everyone. I have an interesting perl idea, and am wondering if it's been done. I would like to have a page on my website, where someone could go in and chat with me. I wouldl like it so that, a person (that I have given a user name and … | |
Hi, Firstly Ill say that I'm a comlete newbie to perl, and this is more of an investigation question than a code one. I want to use perl for a CGI script- however I need the source code to be completely closed source - so that users cant decompile it … | |
Ok, Here is my issue. I have written a script that takes Weblog files that have been GZipped. Parses them outputs the required data to another file. GZipps that file and leaves the original in tact (Actually it unzips it, then rezips it). Anyway, it runs just fine on my … | |
Thanks in advance for reading this, and commenting. The example below is from p.144 in the latest Lama book edition (O'Reilly 2008), and I can't get it to behave as the book states. It states that the diamond (<>) operator will take user input (which should be a file name), … | |
Hi, I'm trying to use Perl script to call WMI interface, but I found out the WMI ports are random, how can I restrict the range of TCP Ports(Actually, I wanna keep the same port access)? Is there any way to make sure this is always allowed? If anyone can … | |
Hello everyone. I have created a sales system for my company. Basically you telnet to the system and enter your login name, password ... From there you can access the sales system. I am working on a feature to write reports for a certain area of the system. For this, … | |
Hi, I want to add one "Save Button" on web page.I am working on ".cgi" program and using "sql server 2000" database.Datas are retrieving from the database and displayed as on html page(datas are student records (i.e) marks,grade etc).In that displayed page,i want to add "save button".By clicking save,it should … | |
Hi. i have to extract the following line: C:\WINDOWS\lsass.exe i tried [QUOTE](\w:\\.*\.\w{3})[/QUOTE] it worked on some strings only. any suggestions ? plz help. | |
Create a form to upload a plain text file, once uploaded to the file system, open the file, and email me a message containing the contents of the file. Im having trouble with learning perl to begin with and Im not sure where to even start for this project. Could … | |
Hello, I am having a bit of a problem.... I wrote a perl script that generates a report in excel. I am using cygwin perl. I made two batch files one calls perl directly and the other calls a makefile that calls perl. Admin: make and batch work perfectly Power … | |
I have a PHP script I am trying to convert to PERL and need some help. Here is the code in PHP [code] $store_list_name = $prod[10]; $category = $prod[11]; $sub_category = $prod[12]; $searchfor = $store_list_name . "->" . $category . "->" . $sub_category; $getcat = mysql_query("SELECT * FROM categories WHERE … | |
So I've been trying to see if I can write a Facebook app, that uses Perl on my side, and interfaces with people who install the app on their Facebook page. But it's so hard to see if this exists! The Facebook dox, well I am lazy, but they don't … | |
Hi all, I am using MS Windows SP2. I should like to share my positive and negative experience with the PPM (Perl Package Manager) with the community. For a reason I uninstalled Perl from my computer and installed again. After installation only DBI was present, and for Mysql the DBD::mysql … | |
Hi, all What I am trying to do is to put a hyperlink on my jsp page. Then, when I click on the link, I will come to the linked page and as well the page can get some info from the jsp page. How is the code like? thanks. | |
Hi, I have 3 arrays. [code] @arr=("TDP-43 is a highly conserved, 43-kDa RNA-binding protein implicated to play a role in transcription repression, nuclear organization, and alternative splicing","the major disease protein of several neurodegenerative diseases, including frontotemporal lobar degeneration with ubiquitin-positive inclusions","For the splicing activity, the factor has been shown to … | |
hi, just added an mdi form into a tabpage with the following code: [CODE]frm_ASN f_New = new frm_ASN(0); f_New.Dock = DockStyle.Fill; f_New.FormBorderStyle = FormBorderStyle.None; f_New.MdiParent = this; this.components = new System.ComponentModel.Container(); ExtremeTabPage tab = new ExtremeTabPage(); tab.Text = f_New.Text; tab.Name = f_New.Name; tab.Controls.Add(f_New); this.Text = "[" + f_New.Text + "]"; … | |
I am trying to write a perl script that takes a file with 3 columns, the chromosome position , start base pair position and the end base pair position. The script should pull out all the snps in these regions . I would like to do this use the following … | |
This regular expresion is not good !!! --------------------- if ($line=/(.*)=(.*)(#+.*)/){ my ($val,$key,$comment)=($1,$2,$3); print "Match line : key($key)=val($val) c($comment) \n"; } --------------------- Example os inputs and the wanted output : a=b #c => key(a)=val(b) c(#c) a=b => key(a)=val(b) c() a="b#" => key(a)=val("b#") c() a="b#"#ff => key(a)=val("b#") c(#ff) a="b"#"#ff => key(a)=val("b") c(#"#ff) … | |
Good day, I like so many, am new Perl. I am trying to search a file for a string, if found, pass it to an array. I don't think what I have done is the best way of doing things, but I learn by getting scripts to work and them … | |
Greetinmgs, I am a programming greenhorn and I would like to make a programm which will generate a number in the way that first the user will say how many digits the number should have (i.e. 10 000) and will also specify the rules for creating the number- i.e. every … | |
i am reading a url and inthat i have an array that has stored the value of a string as follows [code] address=no+3%2C+oxford+street in this wat i want is to display the address as "no 3 oxford street" [/code] some one please give me the code to write this as … | |
I have 3 classes, a student class, a studentList class, and a form. The ToString method is implemented in the student class, and a few students have been created and added in the studentList class. In the form, I'd like my current list of students to show up in a … | |
i want decode a url, can please some one help me [code] http://localhost/cgi-bin/p.pl?Name=jenny&address=oxford+street+&address=Enter+your+working+place+if+any+or+state+%27NO%27&button=SUBMIT [/code] how do i extract the name and other information from this url and save it to a variable. and save it to an array please help i am an absolute beginner | |
<?php $query_getf = "select ci.tb_ci_id, concat(ci.tb_ci_fname, ' ', ci.tb_ci_lname),ci.tb_ci_city, ct.tb_ct_desc, md5(ci.tb_ci_id), s.tb_s_name_full, case ci.tb_ci_addr_2 when '' then ci.tb_ci_addr_1 else concat(ci.tb_ci_addr_1, ', ', ci.tb_ci_addr_2) end, ci.tb_ci_phone_1, ci.tb_ci_phone_2, ci.tb_ci_fax, ci.tb_ci_email FROM tb_contact_info ci, tb_contact_type ct, tb_states s WHERE md5(ci.tb_p_id)='".$fd_p_d['md5_id']."' AND ci.tb_ct_id=ct.tb_ct_id AND ci.tb_s_id=s.tb_s_id ORDER BY ct.tb_ct_desc, ci.tb_ci_date_added"; //print $query_getf; $sth_getf = mysql_query($query_getf); … ![]() | |
In C we have what we call dangling pointers where if a pointer is pointing to something else and if that something else is deallocated or removed from memory then the pointer that is pointing to that something else is now a dangling pointer. I've been learning the basics of … | |
Hi I have a form which adds data to a dataset, which can be viewed in a datagrid as it happens and then they finish and this adds it to the database - but after a short while the data that was added seems to rdissapear ffrom the database! Wondered … | |
how can i measure these server load with request from my personal | |
Hi, i have the following script: [CODE] #!/bin/perl -w use strict; $ENV{"PATH"} = ".;" . $ENV{"PATH"}; print "Revesing the history file...\n"; print reverse <> history.txt > history_rev.txt; print "Reversing the XpressClients file\n"; print reverse <> XpressClients.txt > Xp_clients.txt; print "Parsing the XpressClients file...\n"; require 'Clients.pl' Xp_clients.txt > clients_file.txt; [/CODE] the … | |
Hi, I'm new to Perl but I'd like to know more. For this purpose I downloaded the ActivePerl-5.10.0.104-MsWin32 .msi package and installed it on my computer OS XP Home. Xitami, PHP, MySQL were already installed, and PHP can connect to MySQL. Now I run the following code from the command … | |
Is it possible to execute Perl code from java script? I have installed apache-tomcat for the same. In which folder should I paste the html file and the Perl file (uses cgi module) ? | |
Hi Everyone, Can some one tell me is this possible. I want to show a text hiperlink over an image. [URL=http://img371.imageshack.us/my.php?image=texthiperlinkjv3.png][IMG]http://img371.imageshack.us/img371/5936/texthiperlinkjv3.th.png[/IMG][/URL][URL=http://g.imageshack.us/thpix.php][IMG]http://img371.imageshack.us/images/thpix.gif[/IMG][/URL] The image it self wont be hyperlink but only the text over it. Check this attached image. Need some thing like this.. Thanks, | |
hello everyone! i'm trying to display a text from my database, that part is already fine but when the value of the text has a - or ' (maybe there's more) in it, instead of displaying the actual - or ' it displays other special char like smileys and stuff. … | |
I have a script that needs to have the email acknowledgment sent to the email that the customer gives. However, when doing it, it doesn't work when I test it. Can anyone view this and let me know if I am mising something. I have changed a few things to … | |
I had trouble with ZoneAlarm so I uninstalled it. Not uninstalled and can not remove it to turn Windows Firewall on. So, Oh it gets better. Thinking I would get help by installing a new firewall (NOT), I installed COMODO Firewall. No they are both active by SSoftware and the … | |
when i ran a perl script on xampp i got this error [B]The server encountered an internal error and was unable to complete your request. Error message: Premature end of script headers: sai2.pl If you think this is a server error, please contact the webmaster. [/B] | |
I just downloaded ActivePerl, hoping it was some kind of IDE for perl. I run windows XP service pack 3 on this box. My Linux Box has perl already installed, but I want to use perl on my windows box as well. I know nothing about perl, so do I … | |
Hello, I am a beginner in perl. I am stuck with a problem. I have an array which looks like this 6.324 32.707 50.379 5.197 32.618 46.826 4.020 36.132 46.259 7.131 38.210 45.919 6.719 38.935 42.270 2.986 39.221 41.892 -0.269 37.184 41.565 `Inline Code Example Here` These are the X, … | |
Hello, i'm interested on learning the PERL language and I do not have any idea on the installation and what really PERL does although i've made research but still confused. Is PERL for the WEB like PHP? or it is like C for creating executable applications?.. I have E-books of … | |
Hello: I am a newbie and need help with a celsius to fahrenheit script. If anyone can help, it would be greatly appreciated. Right now, it comes back with the error Here is my HTML code: <!xxxx.html> <HTML> <HEAD><TITLE>XXXXX Temperature Conversion</TITLE></HEAD> <BODY> <H3>Use this form to convert a temperature.</H3><BR /> … | |
Hi i am new to perl. i just got an error when i exceuted the perl script which is as folows: Day '' out of range 1...31 in C:\..... in line 87 and the code around line 87 is: sub get_unix_timestamp { my ($date,$time) = @_; my $mday = substr($date,0,2); … | |
Hi All Please help me with the following code, it works fine when i enter 1234567890 but goes mad when i enter one more digit i.e 12345678901. It keeps on looping and displays infinitely:- "Invalid Input. Please try again.!!" How can i fix/correct this? Any help will be appreciated! [code=cplusplus] … | |
I'm developing an application that sends emails to customers. The body of the email contains a URL encoded hyperlink back to our site kind of like this: [url]http://myserver/myfolder/test.cfm?id=%409%20%2DW9I74%3D%402%5CN8%2A5%3D%3D5%2D%40%3C%3D%3DQ%5B%40%3AB%5D2Q%2B%2BN%3C44%3A3%3E3%3C%20%0A[/url] In Yahoo, GMail, Outlook, etc. the link works fine. However Hotmail is decoding the link before it sends: http://myserver/myfolder/test.cfm?id=@WUE^[MA6 9J?%3D5B%258D^K5@^%2BD<;5U) '((OZ<,%2BFU%25( Anyone … | |
I've got a Perl program that is returning an incomplete result set. I can output the mySQL call that Perl is executing. In the perl program it gets less records back than if I copy and paste the statement into phpMyAdmin and execute it. Statement Example: SELECT brand,name,collection,dept FROM models2 … | |
Hi i did a shell script. This script is configuration for voip gw's. But i dont upload this output file ( example = ****.ini ) from gw with telnet and commands. how do i need ? This script must be telnet and put confguration mean must read my output file … | |
I'm new in perl although i'm an experienced programmer on the c language and its successors. I learned that perl borrowed some concepts in C so i bothered learning it. i'm trying to solve this palindrome thing. In C we have the isalpha() function which PERL doesn't have. Is there … | |
Hi, As i m newbie for the Perl With Html Button. The scenario is like this: [list]I have HTML button in the perl Script. [/list] [list]I have to get the Data of Enable checkbox Data using the button click event in perl [/list] [list]And I have to copy/cut that Enable … |
The End.