2,452 Topics
| |
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.