2,452 Topics
![]() | |
Hello, I would need your help, I have a Perl code that makes a folder structure, it reads a txt and creates the folders Now I have an issue I have to go through this folder structure and insert a file delete_me txt is yhe lowest level, and I have … | |
Is there a way to store multiple values to a key without using any extra modules? Here is the code I have so far: [icode] $key = $ref->{$uniqueKey}; my $systemKey = GetSystem($key); push @{$referenceTable{$key}}, $systemKey; my ($k, @v); # SET UP THE TABLE print "<table border='1'>"; print "<th>User</th><th>System</th>"; # EXECUTE … | |
Perl newbie here… need some help and suggestions. I’ve searched for many examples but so far it’s all for array operation for two arrays. I have three arrays and want to find the common value in the three array and list them out : Array 1 = {0, 1,2,3,4,5,6,7,8,9} Array … | |
Hi, I've a csv file consisting of two columns - one with "Last Name" and other with "Email Address". I would like to match Last Name ( not an exact but a contain match), and if didn't match, populate third column with "0". Does anyone has a perl script to … | |
Hi, I am looking for a conversion tool for converting an svg file into a jpg file. Does anybody know of a perl library which can do it or a tool with as few dependencies as possible and which can be accessed by command line. Thanks, Aj | |
Hi, I have 2 arrays and i have to compute the difference between arrays in perl. Here is the code. [code] @a=qw(20095053 19947571 19933274 19910458 19875498 19863670 19747485 19699809 19609242 19602509 19400988 19260844 19190289 19067769 19064710 19056771 19036087 18698092 18692784 18687424 18570886 18562159 18478156 18462614 18425777 18292846 18292840 18390561 18381856 … | |
hi i want to connect to my facebook with perl i just start now to programming in perl before perl i programming in C. i see several codes but all the codes not work!!! i want to connect to my facebook and to my msn messanger. very important that i … | |
I use the following script to open up outlook express and grab all e-mail contents. However, I only get a bunch of pipelines (|) instead of characters. I can't find anybody else who has run across this online, and was wondering what the problem is. Here's the code: [CODE] open(MAILER, … | |
Dear all, I am a newbie to perl. I want to read file line by line in two sets i.e., odds and even. Means it should first read first line and second line then check for regular expression in second line with condition to print or not then move forward … | |
Hi All, I have written one custom script in bugzilla called duration.cgi which calculates the bug duration. I am getting below error message while trying to access link : [url]http://localhost:8200/duration.cgi[/url] as below: [B]Software Error Insecure dependency in parameter 1 of DBI::db=HASH(0x275840c)->prepare_cached method call while running with -T switch at C:/Bugzilla/duration.cgi … | |
Hi, can any one help me out in list out the choices for the existing files through perl script | |
I'm writing a program which searches through a list of medium sized text files for a particular keyword string. This string may appear more than once in the file. The files are generally parsed out for readability, so they have hard returns at the 80 column mark within paragraphs. As … | |
Hi, I am new to using the Soap::WSDL module. How would I go about getting rid of this parsing error? [code] #!/usr/bin/perl use strict; use SOAP::WSDL +trace => 'all'; use Data::Dumper; my $ops = 'http://ops.epo.org/wsdl/ops.wsdl'; eval { my $soap=SOAP::WSDL->new( wsdl => $ops, ); }; if ($@) { print "wsdl error: … | |
so, previously, Grub would start and give me the option of the starting either Linux (fedore core) or winxp. Using partitionmagic, I deleted the linux partition and joined it with winxp. When I rebooted, I get a GRUB prompt ("grub>"). I now have no idea how to get it start … | |
My program is supposed to essentially be something like Wheel of Fortune. As long as the user guesses letters that aren't in the word, the program behaves properly. But, when the user inputs a letter that IS in the word, the program stops and doesn't continue at all. [code] #include … | |
hi i am new to this forum.i have a problem regarding to my project.The problem is that I can extract the email from the server and then I have a task to summarized the email and then SMS that summarized email.So that a email can be converted into 1 sms. … | |
It isn't quite Perl version 6 but it's well on its way. Between now and Monday, [URL="http://www.activestate.com"]ActiveState[/URL] will release version 5.12 of its cross platform, easily installed ActivePerl. Version 5.12 offers more than simple bug fixes; it's a major release that some developers look toward with great anticipation. The major … | |
I want to use $#array. But # makes the next words commented. Is it possible to avoid such situation? [CODE] for ($i =0; $i <= $#array; ++$i) [/CODE] | |
Hi, I am new to using the Soap::Lite perl module. Here is a piece of code to retrieve an image, but it does not seem to working properly. [code] #!/usr/local/bin/perl # Load the SOAP library use SOAP::Lite; # Service details my $NAMESPACE = 'http://ops.epo.org//soap-services/document-retrieval'; my $ENDPOINT = 'http://ops.epo.org//soap-services/document-retrieval'; # Create … | |
![]() | Hi Guys, Please help me out to resolve this. I have NOKIA 3110c mobile and frequently I connect internet thru nokia mobile thru a data cable. So now you come to know that I have use a usbport (I dont have much idea about ports). Before connecting to the internet, … ![]() |
Hi, new to Perl. Learning regular expressions. Im trying to validate a form field using regular expressions. Field criteria is: - Begin with a letter - 4-8 characters long - must include at least 1 digit So far Ive got: [code] $fieldValid=$username=~/^\D\w{3,7}\d+/; [/code] I read this as "beginning with any … | |
Hi all, I need a perl script that can open files (given in command line arguments) and extract/print out any dates or times found in it. The format of the dates and times can be any reasonable format. The problem I have is I don't know how to print out … | |
hi, I have written the perogram in perl and i want take previous date in "April 3 2010" in this formate . plz tell me how can i get this. [code=perl]#!use/bin/perl use Date::Format; my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(); my @weekday = qw(Sunday Monday Tuesday Wednesday Thursday Friday Saturday); my @month = … | |
Howdy all, For some reason I just can't get my modules imported into my CGI script and run in a browser. It will print the HTML fine in a command prompt call, but the browser gives an "Internal Error 500." Error in Firefox & IE: Server error! The server encountered … | |
So; I have a list in a text file that contains sections of a what would be filenames.. I'm wanting to read from this text file into I guess an array, unless there's a better way to do it.. and then find the file that matches with each of the … | |
Hi everyone, I want to put a border around a hyperlink but in IE7 the bottom border line is omitted and in Firefox it looks fine. Following is my html and css code. I have checked google to no avail. I have tried various position: relative/absolute combinations with no success. … | |
Hi there, Could someone tell me if it's safe to edit PCL(Printer Command Language) files in Windows? I've a bunch of PCL files to edit and each PCL file is different when it comes to the header part. So, I'm not able to figure out a standard simple way to … | |
Hey Guys, I am developing one tool on perl to moniter mysql database in many systems(in all types of OS). I want to track some info like this getting databases parameters , getting database schemas, get logspace .... etc , what could be the good approach in perl.. If you … | |
Is there a method in Linux to monitor a port for activity, then when found, execute a script? For example, when tftp port 69 is accessed, run a script that runs commands. thank you. | |
I was wondering if it were possible to extract the hashes from the XML:: Simple output without knowing the elements' name beforehand? I've searched the web and only found tutorials how to get elements from a certain file with certain tags. [CODE]use XML::Simple; use XML::Parser; use Data::Dumper; my $file1 = … | |
Hello again, Whenever I run a certain .exe in my CGI script, it opens the process but does not bring up the application. I am forced to close it out through task manager. Both exec & system have the same result. I created an autoit script to run the .exe … | |
So; new to this perl mess But I'm wanting to write a little snippet that performs what seems to be a simple action. I have three text files Text1 contains a list of items that are required Text2 contains a list of items (some may be on the list of … | |
\\computer name .not accessible.might have no permission. is the error mess I am getting while trying to access my lan please any one send me the trouble shoot method to it. pls pls Thanks in advance | |
Hey there :) i am trying this part of code, which testing arguments on command line: [CODE] use Getopt::Long; GetOptions( "verbose" => \$verbose, "get" => \$get ); print "verbose = $verbose\n"; print "get = $get\n"; [/CODE] In my script i have several arguments, with which my script working (any sequence). … | |
I'm currently learning how to read through large groups of text files to scan for key words for some research work I'm doing. I came across an example that I don't fully understand, mostly because my Perl knowledge is a little piecemeal and it's been tough trying to find a … | |
Disabling of hyperlink can be done by the help of Javascript, but can anyone tell me the code, how to disable a hyperlink by the help of php coding. In the web page, it is desired that when a user signs in as an administrator, he could access the hyperlink, … | |
Can someone please help me? I'm getting an exception: Given final block not properly padded. I can't figure out what I'm doing wrong. Shouldn't Java automatically pad the data for me? [CODE] import java.security.*; import java.io.*; import javax.crypto.*; public class AES { static String fileName = "javaEncrypted.dat"; static File inputFile … | |
I have a need to strip "some" of the comments from a C file. The comments can be C or C++ style and can ofcourse be part, single or multi line comments. As in [code=c]/* usual C style comment */ int i; /* this is going to count things */ … | |
i have an old CGI script i have been using for years for my guestbook... i don't want to update it, it works fine, its lite, easy.. ok.. but, lately i have been getting nailed by bots posting... i need to install some sort of captcha.. and that is where … | |
hello, i'm having trouble printing arrays to file. each time i run this code, i get only two results max. if the array has 2 genres, i get them but no languages. if the array has 1 genre i get it and only 1 language. if the array has more … | |
My datagrid column, ID, Name, Member Number and there are about 50 entries into it. It reads an xml database and adds rows at runtime. When i click on the row to sort you can see the arrow up or down, and most of them sort but there will be … | |
I have a hyperlink column in a datagrid that uses DataNavigateUrlFormatString to open a popup window via javascript. I am trying to get two variables from a sql to show in the query string for the popup window. I am able to pass the sessionstart date which is ={0} but … | |
Hi Everybody!!! I am Working on Web application Using C#.NET(Microsoft Visual Studio) and SQL server 2005 ,Microsoft Internet Explorer .I have to show some Sanskrit text on web page.Now i am showing it using the Text Box control(as it show text as it is from database like paragraph...) 1.My Problem … | |
I need a perl script for the following case. Input is a text file with the following content AB001. I need to replace the text with AB002 in a new file. This has to go on until AB999. ie., At the end there should be 999 files with the contents … | |
Hi, im trying to use an actionlistener attached to a button to add a component to a frame I have created. The actual button should add to the frame a circle with some text placed in it which I have already created, it works fine so there's no problems there. … | |
Hi, We've a requirement wherein we're provided with a csv file, within the file there is a name field, and some of names are very long and are causing issues while importing. What we want is pull out these kind of rows containing longer names and send it back to … | |
hello, i use a simple log script on my site.. very basic.. i would like to modify it, and am having issues.. here is what i would like... i would like to be able to have it filter out certian HOST names.. but not exact.. say for instance, i dont … | |
Hi, I have a Word doc and a front page doc. I am looking to create a script that will look through the 1st document and take any text between two tags (ex: <h1>text text</h1> and then copy it to another file between two tags (say <tr>%text will go here%</tr>. … | |
Greetings. I need to print an Excel document to a PDF with hyperlinks. Creating hyperlinks in Excel is no problem. If I print to a PDF (using Adobe PDF print driver), the hyperlink appears and works in the PDF. No problem. But I need to change the display text of … | |
Hello, Question regarding the connect function (in Socket), how to specify a specific port? The function only accepts two arguments, the socket and the ip. I have multiple devices on the same ip but different ports that I need to connect to, how to do this in Perl? Thanks. |
The End.