2,452 Topics
![]() | |
[code=perl] if ( $#ARGV < 0 ) { die "Usage: tdbFormatBulkassets.pl date file_to_be_parsed loan mloan"; } $input_file1 = "$ARGV[0]"; $input_file2 = "$ARGV[1]"; $input_file3 = "$ARGV[2]"; $input_file4 = "$ARGV[3]"; $output_file1 = "$ARGV[4]"; $output_file2 = "$ARGV[5]"; $output_file3 = "$ARGV[6]"; $output_file4 = "$ARGV[7]"; $output_file5 = "$ARGV[8]"; $count = 0; $hedge_entity = 70; $hedge_request_id … | |
I have formatted a PC today, Its a windows XP Pro PC with Zone Alarm Antivirus and Firewall installed, also iNorton Goback system restore installed. When i shutdown PC, it says.. Saving setttings.. Logging off... Shutting down... and atlast it just hangs in the Final Blue screen instead of shutdown... … | |
Hi, Someone put together a small perl script for me that uses day and time to determine which of two images to display (open.gif or closed.gif). I need to modify the script to also include a hyperlink to open.html or closed.html so that if the open image is displayed it … | |
hi this is manjunath new to cgi, i have some cgi code, now i want to implement the same in javascript or jsp, please help me to do this. or please explain me what this code is doing. here is the code: $c = 1; while(Allbase::FetchRow(\@d)) { $d[2] = substr($d[2],0,10); … | |
Hi all, i want to access elements of a text file columnwise just like accessing elements in a matrix. ex: a text file contains a matrix with the below strings. a apple + b book + c cat _ d dog _ ...........and so on. Now i want to access … | |
How to open HTML page in a browser with specific options selected in drop-down boxes? Hi Everybody, The task that I have is from Perl script to open HTML page in a browser with specific options selected in drop-down boxes and edit fields using POST method. The good example of … | |
I already configured the Tomcat to run CGI, following some steps from several tutorials, but I do not know what is happening that I cannot run any Perl CGI. [B]The browser just tries to download the code file, it is not showing the compiled output.[/B] I have this simple page … | |
Hello, I am trying to integrate a link in a Visio diagram to a specific remote desktop session. Basically, I want to be able to click a server in my drawing, and have remote desktop come up with a connection to that server. I know that the syntax of the … | |
I am automating web based application. Through my script i I have opened IE and the web based application i want to test. how can i click on the links of that web applcation? | |
Is there any way to set the perl library search path to the path that holds the perl script at compile-time? In other words, I'd like it so that I can keep my perl scripts and perl modules (.pm) in the same (arbitrary) subdirectory and have it work by just … | |
Hi everyone, I have been searching the Internet trying to fix several problems I am having, I think I have managed to fix one but I am hoping you can help with the others. The problem I "think" I fixed, I was receiving an error message - application failed to … | |
Hello All: I am attempting to do a loadtest on a process which is "suspect"... Does the following code generate multiple instances....???? [code] for ($i=0; $i <= $iteration; $i++) { printf(" Executing Iteration:==> %d\n", $iteration); system ("master_menu &"); } [/code] As you can see, I run the execution in background. … | |
Where I work, we have mutiple products which create installation packages that are kept in the same directory that I will call the mainBuildDir. An installation package is a directory whose name is the product name followed by the date. Ex: ProdA_2007-06-22 The contents are multiple files and folders, perhaps … | |
Hi i'm using the Net::POP3 module for reading my email, but it doesn't feature a method that lets you get the body of the email directly. So I have to construct a regex in order to get it. The problem is that I can't get it right. I want to … | |
I recently installed a new Double Layer Lightscribe DVD burner and am having issues with copies of DVDs I am making (let's assume they are legal DVDs). Whenever I burn a copy they never quite work right. At various points, it varies on each burn, they stop working. I did … | |
Recently, I have been requested to build a system to transfer some information to another system via ftp. I was recommended to use a specific, working file and modify it, as it already contained the transmission data. I was given a new target url and a new user id and … | |
How do I retrieve content of a website in perl? That is given an url say google.com, I want a function get so that $text = get($url); $text should contain the content of google.com/index.htm | |
hi this is devesh, i have a perl cgi script that downloads files from other site. but i got this weired problem that the script stops responding after downloading exactly 100 files (any browser IE or Firefox). i am running this script from windows 2003 server with IIS 6.0 any … | |
Hi All, I am doing convert xml files using perl(filehandle). i have one problem in Cross Linking (all figure, tables, footnotes). I cant understand which function it ll be do or not. Does anybody help me. Its possible or not to match appropriate match link. [B]My xml file[/B] ------------ <book> … | |
Hi, I am using a PHP form and I would like to have the ability to convert any emails and URLs that are in the post to automatically have a hyperlink. I don't want to enable any other html tag other than the hyperlink in my posts and I am … | |
I'm having a devil of a time trying to insert a Windows UNC share into my MySQL database. The DBI quote function doesn't seem to be behaving as I would expect. Here's a little example: [code=perl] #!/usr/bin/perl -w use DBI; my $unc = '\\somebox.somehost.com\someshare'; my $dsn = "DBI:mysql:cmdb;localhost"; my $dbh … | |
hi, I wish to know if there is a way in perl using Win32::OLE to export a specific Excel Worksheet (not the entire workbook) from a workbook as a .csv file? Can you give me the sample code for the same? | |
#!/perl/bin/perl -w print "Content-type: text/html\n\n"; use WWW::Mechanize; my $mech = WWW::Mechanize->new( ); $mech->agent_alias("Windows Mozilla"); use LWP::Simple; use HTML::TableContentParser; $mech->get("http://google.com/"); my $filename = "admin.htm"; [COLOR=red]print $mech->content;[/COLOR] print "done..............."; [I]$mech->save_content($filename); [/I] die "cud not save ",$mech->response->status_line unless $mech->success; print "done..............."; here is part of my perl script. the problem is, i am … | |
I kept getting 500 Internal Server Errors when trying to set up one of my Perl scripts, so I decided to test a simple "Hello World!" script. It produced the same error: [FONT=Courier New]Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your … | |
Hi everyone, I am trying to brainstorm some cool topics related to Perl that I can use to give a lightning talk for my Programming on the Internet class. Does anybody have any ideas? Thanks for any help in advance. | |
two zip files are inside the source.zip file i have attached. my webpage is in demo.zip. I have taken the javascript scroller concept from IFrame-ScrollingImages.zip. As you can see, the scroller doesn’t work properly on the about.htm page. It scrolls to a certain extent, the restarts suddenly instead of showing … | |
Hello. Recently, I am having a startup problem on my Windows XP machine, and I am hoping someone can help. When I start the machine, sometimes it starts up just fine. No problems. Other times, the green POWER LED comes on, then I can see the CD-ROM access LED coming … | |
I'm trying to create a libmysql.a file for my Dev-C++ project. Parameters for dlltool is as below : [IMG]http://img527.imageshack.us/img527/8911/beforeco4.jpg[/IMG] But the output libmysql.a file is not proper, it doesn't contain anything. [IMG]http://img72.imageshack.us/img72/1707/afterpj1.jpg[/IMG] What am I doing wrong? | |
I am trying to write a program which sends text from a forms Rich Edit Boxes via 2 serial ports( COM3 and COM 4 have 2 rich edit boxes each for incoming and outgoing text) using Borland C++ Builder 2006. This program uses some C++ serial port communication library code … | |
hi this is akash i am doing project in java, i have some code in CGI , now i have to transfer that code in to javascript, can any one help me .it is very urget,please help me. | |
I would like to run a profiler (such as DProf) over the CMS we are working on. It doesn't run properly from a command line and I haven't found a way of wrapping the profiler around the web calls. Any Suggestions? | |
I can't figure out why my liquid layout approach is working with one of my rows and not for my other. Here is the css I'm using...it works for the row3col1 and row3col2, but not for the row2col1ycaaa and the row2col2ycaas(here it doesn't float my information. #row2col1ycaaa { margin-top: 10px; … | |
Hello, I am working on an assignment for my Perl class where my script goes out to a web site, extracts some information and is supposed to email the relevant information to an email address specified in the command-line argument. So far, I am able to extract the information from … | |
hi! i am trying to add new features on a third-party webmin module vsftpd.i want to add radio buttons that enables/disables textboxes and i think i have to do this using javascript but i couldn't embed the javascript code into perl, how can i do this please help me!! | |
Hi i ahve following find & grp command the command look into the file and check the pattern and output to three lines. is it is possible this output into one line seperated with some characters ------- find ./*temp.log* | xargs -i{} cat {} | egrep -e 'Control:' -e 'Run' … | |
First of all, hello! I've been reading the forums for quite a while now, but this time I need real help. To summarize things: I'm building a parser which has to consolidate data based on variables contained in an array. The source file contains a set of tab-separated-values, and those … | |
I'm not a programmer but I desperatly need help with the following please... it was written by someone but never tested, and contains some small mistakes that I can't solve. The person is not available anymore, so here my plea for help. I have a mailmessage looking like this: [URL]http://www.criens.nl/lambada/sailmailmessage.txt[/URL] … | |
Good day to all, I am trying to add a search on my website, the problem is that the files that i have to search in are mostly excell sheets.the sheets include two columns basicly , ie arabic terms along with their equivalent english translation. can someone tell me what … | |
Hello, I am currently taking a class on Perl at College, but I have found a use for it at my job. The Unix box I am currently working on has Perl 5.005_2 loaded on it. Does this version of per support back referencing, (e.g. when I put () around … | |
I have a Dell Latitude CPx (J series) laptop and a section of my keyboard decides not to work at various times. (The Y, U, H, J, N, and M section.) Most of the time I can restart it and it will work properly after that. Other times, it doesn't … | |
I have been tasked with cleaning up some daily backups and I want to automate this. I have decided that Perl might just do the trick except up until about a week ago I did not know much about it. I have been doing some homework but I am stuck … | |
Hi All, I have one xml file. My task is split xml file in Chapter wise and Figure entity notation also move to same chapter. My problem is how move entity notation. My input xml ------------- <!DOCTYPE document SYSTEM "rr.dtd"[ <!ENTITY A3_11_f01 SYSTEM "A3_11_f01.tif" NDATA tif> <!ENTITY A3_12_f01 SYSTEM "A3_12_f01.tif" … | |
Hi all; I have to control wheter a string is an array element or not. I tried to exists function but it didn't give me the desired output. [code=perl]print "Which hotel do you want to remove from the list?\n"; chomp($a = <STDIN>); if(exists $name {$a}){ foreach $record(@name){ if($record eq $a) … | |
hi i am reading from a file and grep'ng for some values and writing those into another file I am using "|" as a seperator for the values smthing like this printf FILE " %d| %d |%d\n",$x,$y,$z; In file i am getting values like this 12|23|23 123|3|234 22333|223|3 but i … | |
Hi there... I am working one a perl script program and hope someone can help me , I'll give you a quick description of my project: My program is given a fasta file, a signal description and a deviation (a number) as input om the command line. A fasta file … | |
I have written my first perl script but something is wrong. When i try to run it direct it just open up notepad with my script in it. when i open from the web it comes back 404 page not found. It is a form script on a webpage. Could … ![]() | |
So I have a perl script that runs another script that someone else wrote. The 3rd party script imports data into a database. When it is done, it includes a "Press any key to continue..." line and waits for input. How can I have my perl script provide that input? … | |
hye! i m editing a grid view row which contains 2 columns. `lineid,filereference` lineid is read only but fileref is a template field i take it as hyperlink ,and hyperlink is editable. i m taking command fields of edit,update,cancel. but when i run ma program it is giving an error … | |
I can compare two XML files by using differencing tool ExamXML from [url]http://www.a7soft.com[/url]. I need to compare two folders that contain XML files in Perl script. Thanks. | |
hi i am creating a directory using perl's system command how can i test that it is created bofore proceeding.. |
The End.