2,452 Topics
![]() | |
Hi, I upgraded Perl 5.8 in Unix to Perl 5.10.0 I am using WWW::Mechanize package in my scripting. But I am not able to locate WWW::Mechanize in Perl. Can any help me ??? | |
Hello I have an jpeg image and on the right hand side of the image are some names which i want to make active, Kindly let me know how to go about it ? Actually, i am making a website for a restaurant, and he has given me an image … | |
I'm working with a com object that was originally designed for ASP. For this one function you specify the name of the field and the variable name that will hold the return value but this doesn't work: [ICODE]$Enable->GetField("LINE",\$Line});[/ICODE] This is how it was originally written in asp [ICODE]Enable.GetField("LINE",Line)[/ICODE] | |
I need to access 2 variables sent to this script; fieldsearch and fieldvalue, both are sent from a php script (using passthru) but the sytax is incorrect as I get a 500 error : [Mon Jun 8 12:17:51 2009] perlSOAP.cgi: Global symbol "$fieldsearch" requires explicit package name at perlSOAP.cgi line … | |
Hello friends , I have a problem like there is web application and i have to write a script that should login to the application and then move other parts of the application [code="perl"] use HTTP::Request::Common qw(POST); use LWP::UserAgent; use Data::Dumper; $ua = LWP::UserAgent->new(keep_alive=>1); my $req = POST "http://servername.com:5002/index.php", ['user_name' … | |
Hi All, Can any one suggest how to connect remote more than one remote server one by one inside a loop through Net::SSH::Perl package ? , I have to connect to 9 remote server, I am able to connect the first server , execute some command there come out again … | |
how do i script a php echo for info stored in mysql so it is rendered as a hyperlink to its website? here is the script i am trying to edit: [B][COLOR="Red"]highlighted in red[/COLOR][/B] is what i need to change for the echo to href. [code]<table> <?php if($this->team->t_official_website){?> <tr> <td … | |
Hi all. Am using amavis for email scanning but got stuck somewhere in the configuration file. I want to add some custom code to populate an array from a postgresql database. (Amavis and its conf are written in Perl) Below is part of the configuration file which i want to … | |
Hi there folks! Please could anyone tell me how I can disable the underline of a hyperlink button server control of datagrid and similar controls ? I had used the following css code on the ItemStyle-CssClass which works for traditional hyperlinks to no avail. Thanks for the help:) [CODE] .tablecellhyperlinks … | |
Could someone please help me figure out how to sort files in a directory by date? There are a lot of files to sort, thousands. All I want to do is sort by date last modified or accessed and then print that array. Thanks, Derek ![]() | |
Hello everyone, I've been having a problem parsing through a .bin file. Ideally, I want the script to read the .bin file, find the first word in it, write down word 1 somewhere else, and continue on throughout the file, word by word. I've tried similar things such as open … | |
[CODE]$dgs = new IO::Socket::INET(LocalPort => $lisport, Proto => 'udp') or die "Socket: $!\n";[/CODE] I have a perl script that I want to run on tomato firmware router using the current shell scripting that it supports How would I do the above in shell? In perl you have to use IO:Socket. | |
I'm having a dumb moment here... I am trying to search out strings and match user input with what's stored in database. I'm using [code]if($data =~ $user_input){then do something;}[/code] It's important to note that all the "$data" strings are all numbers. So for example, user puts in "1" and it … ![]() | |
![]() | Hey, I'm looking to gather a list of all selected files in a windows explorer window. I.E. Say I have the My Documents Folder open, and select 5 files out of say 20 in the folder, I would like to replace whatever is in the clipboard with those five entries. … ![]() |
Hi all, I am creating an Windows Application. I have two buttons. I have written the following code snippet. [code] frmRb obj = new frmrb(); private void btnPd_Click(object sender, EventArgs e) { btnCancel.Enabled = true; obj.btnRtn.Enabled = true; } private void btnCancel_Click(object sender, EventArgs e) { this.Close(); obj.BringToFront(); obj.Focus(); } … | |
hi, there, i want to use .gif button and use in the hyperlink. i am not able to move to another page by clicking it. the code is as below: [CODE]<asp:HyperLink ID="HyperLink1" runat="server"><img alt="" longdesc="file:///C:/Documents and Settings/user/My Documents/Visual Studio 2008/WebSites/WebSite9/Images/line.gif" src="Images/line.gif" style="width: 1273px; height: 6px" /></asp:HyperLink>[/CODE] | |
Hi, i wrote the socket script in python, Here both server and client running in under same machine. operating system is ubuntu 8.10 desktop version. [B]tcp server[/B] [CODE] 1 #!/usr/bin/env python 2 3 import socket 4 import sys 5 6 server_socket = socket.socket(socket.AF_INET,socket.SOCK_STREAM) 7 server_socket.bind(("", 5000)) 8 server_socket.listen(5) 9 while … | |
Ok i have not started programming at all but wanted some answers first is pearl the easiest programming language ?? also if it is what is a god book to learn it from. If it is not then what is one of the easier languages to learn ??? | |
Hi, In my website i am planning to do portfolio things in that i gave fade in fade for all images this is working with same size of image.But i have images like this sizes 500/300, 300/150 like if i give this images into portfolio that time if one image … | |
Hi I am new to perl programming, and have hit a bit of a snag. I have been editing the ghettoshutdown script for my own devices. What it does so far is shutdown or suspend all virtual machines on a host (using vmware for virtualization), but it does not shut … | |
Hello all I am creating a site for user registration to a class. As classes are added and removed, I have a dynamic table that updates to list the available dates. [code=php] $result = mysql_query("SELECT date, time, type FROM class"); while($row = mysql_fetch_array($result)){ printf("<tr>"); printf("<td><a href = 'registration.html'>%s</a></td> <td>%s</td> <td>%s</td>", … | |
Ok, I am about to pull all my hair out. I have written many many perl scripts and have done it all pretty much. All of a sudden, I have hit a real problem, and I DON'T know why! I am doing a very simple array declaration by reading a … | |
Hello, I'm fairly new to PERL and this is my first post - so be kind. I'm working through a book called Beginning PERL for Bioinformatics, and one of the exercises asks to "Write a program to read a file, and then print its lines in reverse order, the last … | |
Hello all, I have been working with Linux a lot and i find myself installing a lot of linux distros, but with no way to test them..... So i crafted a script in Perl to quickly create a lot of files on the Hard Disk and delete them. The script … | |
Hi everybody, I want to compare 2 tables contents. My tables are: Table1 ------------------ ID || Value ------------------ 1 || forum_list1 2 || Message_list1 3 || Search1 4 || Search5 5 || Search11 6 || Log_out 7 || LOG Table2 -------------------------------------------- ID || Value1 || Value2 --------------------------------------------- 1 || rd_forum_list1_no … | |
How to print the duplicates in a text file. Also the line number where the duplicate text has been found needs to be printed. pls help KZ | |
I have defined a variable in bash [code]$ MYDATESTAMP="2009-06-25 21:57:18"[/code] I would like to pass this to perl to perform a simple date conversion. If I enter the date manually it works. [code]$ perl -MDate::Parse -le'print str2time("2009-06-25 21:57:18");' $ 1245992238[/code] My attempts to pass the variable MYDATESTAMP into this command … | |
open(FILE, "<", "numb.txt" ) || die "Unable to open numb.txt <$!>\n"; while ( <FILE> ) { chomp; $fileHash{$_} = $i++; } close(FILE); open(FILE, "<", "num.txt" ) || die "Unable to open num.txt<$!>\n"; while( <FILE> ) { chomp; if( exists $fileHash{$_} ) { } else { print "$_\n"; } } close(FILE); … ![]() | |
Hello. I am new and hope to find an answer to my query. I run a classified database and have been doing so for quite a few years, I recently upgraded the Plesk CP on my server and suddenly a problem appeared with the way the DB is returning the … | |
My new website is aligned properly in all browsers except Explorer. Can anyone help? Link: [url]http://www.altartist.com[/url] Thank you!! | |
Hello All! Thank you very much for viewing this thread. My problem is I am trying to pass a number value between classes/thread of the same java project in eclipse. I have a java project of 9 classes with three threads. The Display Class/Thread needs to accept a value coming … | |
hi guys can you help me with my problem.. i have a problem on my computer everytime i turn on it.. its automatically shutdown.. i dont know what part of my pc are not function properly.. i already change my power supply and my hardisk but nothing happen.. guys can … | |
Hello all, Can you help me please; I have a directory GENERAL, into this directory created many subdirectories. I want to create a Perl script, that can create *.tar or *.gz files all this directories individually. Is it possible? Thanks in advance. | |
Hello guys, I m trying to run a simple php code. I have Apache Tomcat/6.0.18 running. I dont know if it is php enabld or not. i've created a hello.php file: [ICODE] <html> <body> <p>This is going to be ignored.</p> <?php echo 'While this is going to be parsed.'; ?> … | |
I am writing a program in which the user enters a number between 1 and 3 (3 meaning that he/she would like to quit) and I am using a switch function within a do-while loop. I am trying to get the program to end the loop when the user enters … | |
Hi, I want to edit post, i made some days back. i could not see any edit link there in the thread. Kindly help me out this. Moderators, Please let me know the answer of above question, or delete all my posts from the forum. Please do it as soon … | |
I am an undergraduate Student, from Computer Science and engineering department I can construct a crawler in Perl, for one particular web-site to fetch the useful information, in my case the - Job Ads at that company's webpage. Now, I want to construct some crawler that is generalized for say … | |
/transcript_id="XM_760437.1" FT /db_xref="GI:71031776" FT /db_xref="GeneID:3502673" [B][U]FT CDS complement(join(18028..18116,19351..20668)) FT /locus_tag="TP01_0004" FT /note="go_function: nutrient reservoir activity [goid FT 0045735]"[/U][/B] FT /codon_start=1 FT /protein_id="XP_765531.1" Hi all, I need a code that reads the whole segment as a string in per. I need to select only the highlighted area and copy it to … | |
I have been working on an assignment for a while now and I have had many problems making the program work from the information and help supplied by my course. The program I need to make is one that analyses text files to obtain statistics on their content. The following … | |
Hi Gurus I wanted to learn perl and I need to know how can I install perl, c compiler etc. I have two Pcs with me one runs on Windows NT and other with Windows Vista. Could some one suggest me step by step guide including the softwares to be … | |
I shut down my pc like normal last night and then this morning when i turn it on, it goes to the normal blue hp screen and then it just goes to a black screen and does nothing, it doesnt go to my desktop like it should. im not sure … ![]() | |
Hi! I split lines on tabs (fields). I would like Perl to print first filed in parenthesis. My script is the following: open (INP, "input.txt") or die "Can't open input: $!\n"; open (OUT, ">>output.txt") or die "Can't open output: $!\n"; while ($line = <INP>) { chomp ($line); @field = split … | |
Hey guys, How I will come to know my perl script for copying files (generally very big sized file 1000 gb ) between two server successed or interupted ? How I will get the error status of the scp commmand I used for copying file ? Thanks in advance | |
Hi, I have a my script here-- [code] print "The Perl Script does the User health check and system health check...\n"; print "---------------------------------------------------------------------\n"; # use strict; my($OS); $OS = $^O; # need to test @ARGV before GetOptions shifts it if (@ARGV == 0) { print "\nNo options provided, using defaults … | |
Hello all, If I have the following code fragment: /* comment bla bla */ ....code... With a regular expression, how do I get/extract the comment inside this multi line comment block. With the comment characters? And how do I get all the multi line comment from in the entire file? … | |
Hi, This might be more appropriate in the PHP section, I'm not sure - still a newb. I have read this problem in other threads, but can't seem to make the solutions work for me. I have a table that shows the results of a query for either pat_id or … | |
Hi, I am very new to Perl and have no knowledge to initiate this through programming view. I am in need of help with adding a new user in UNIX using Perl programming . If you know my problem could you please assist me and share your knowledge for doing … | |
I have a script that needs to extract data using perl modules. I cannot write it using php because the site would need a complete rewrite. I need to get a string (it is xml) sent by a post to a php script. and I have no idea how. I … | |
I have what I thought was a straightforward program. [code=Perl] #!/usr/bin/perl -w use strict; $a = 6; $b = 9; $c = 7; print $a . "\n"; print $b . "\n"; print $c . "\n"; [/code] I assumed this would display: [code] 6 9 7 [/code] and it does when … | |
Hi, I have a perl-cgi script (on apache server). The script is called when user selects some arguments and presses submit button from HTML form using get method. The script inturn calls some batch files using system command and does some other things depending on the arguments selected by user. … |
The End.