2,452 Topics

Member Avatar for
Member Avatar for Debangana

Hi I have written a ftp script in perl.It seems to work fine but for some servers it throws an error "Bad file number" while trying to close the connection.What can be the reason for this?How should I resolve it? Following is the ftp section from my code: [code]if (!$ftp->get($ftp_FileList, …

Member Avatar for Debangana
0
236
Member Avatar for isomillennium

Hi all , just learned the basics of perl thru a website. and i was just wondering what the perl equivalent of php code .... for($i = 0; $i < 10; $i++) { $myarray[] = $i; } would be. Any help appreciated thank you ..

Member Avatar for isomillennium
0
55
Member Avatar for Gonkawan

Greetings people. I've just recently discovered PHP, and have just created my first dynamic PHP-document, which fills a table with data from my SQL db. It works quite well, but what I'd like is to have hyperlinks in one of the three columns (header), pointing towards whatever adress posted from …

Member Avatar for Gonkawan
0
118
Member Avatar for sid78669

Can some suggest a good way to cleanup the HTML that is output when a perl script is run using the CGI module? I tried to install HTML::Tidy, but couldn't as i was missing libtidy. And I don't want to go through 700 lines of code and putting up loads …

Member Avatar for sid78669
0
81
Member Avatar for sid78669

Hello everyone, This question is in regards to the HTML::TreeBuilder module in perl. I am using it to extract meta tags from website contents. It was working fine until i tried to extract meta tags from [URL="http://www.audicanada.ca/audi/ca/language_selector.html"]http://www.audicanada.ca/audi/ca/language_selector.html[/URL] This site contains all the meta tags that i need, author, keywords, description. …

0
56
Member Avatar for arya6000

Hello If we have code like this [CODE]$content =~ m/test/;[/CODE] than it will return true or false, but how can I put a match of a regex into a scalar instead of it returning true or false? Thank You

Member Avatar for KevinADC
0
77
Member Avatar for rana03

Hi I want to map a network drive on Windows platform and i am running my script on Unix machine; What are the possibilities by which i can map network drive in perl Please reply thanks in Advance, aNa

Member Avatar for rana03
0
788
Member Avatar for sid78669

I am trying to create the meta tag: [CODE=HTML]<META HTTP-EQUIV="Pragma" CONTENT="no cache">[/CODE] I tried the following line: [CODE=PERL]print $cgi->start_html(-title => 'Meta Test', -meta=> { 'HTTP-EQUIV'=>'Pragma', 'CONTENT'=>'no cache'}), "\n"; [/CODE]But I get this: [CODE=HTML]<meta name="HTTP-EQUIV" content="Pragma" /> <meta name="CONTENT" content="no cache" /> [/CODE] Can someone tell me how to create the …

Member Avatar for sid78669
0
164
Member Avatar for kishore5001

Hi, i want to run a c code , with perl as script.. i want to compile and run the c code , in a.pl file How to do it ... Any links

Member Avatar for ithelp
0
77
Member Avatar for punitdam

I am trying to connect Mysql5.1 from Perl 5.8.8 on RHEL5 as follows: [code] $dsn="DBI:mysql:database=mysql"; $dbh=DBI->connect($dsn, 'root', 'root', 'mysql',{RaiseError => 1}); [/code] When I try to run perl containing above connection, it gets connected to Mysql and fetches data but displays following warning. [QUOTE]DBI->connect using 'old-style' syntax is deprecated and …

Member Avatar for punitdam
0
531
Member Avatar for sid78669

Following is a perl script. It is running on shell when I go perl followed by the filename and works perfectly. But when I try to open it from browser, it gives back a 500. The permissions are fine because if i make some syntax error, it gives me the …

Member Avatar for sid78669
0
225
Member Avatar for KimJack

Hello All, I am working on a simple program that will counts the number of matches found. I then need to display the text of the last successful pattern and the text the preceeds the last successful pattern match. This is where my problem is. How can I get these …

Member Avatar for KimJack
0
77
Member Avatar for yorockk

i have some hyperlinks on a form.I have set the navigate url of all the hyperlinks to a single destination page("display.aspx")i.e.clicking on ne of the hyperlinks would take you to the same page "display.aspx".. but based on which hyperlink i hav selected, accordingly values from database will be retrieved and …

Member Avatar for greeny_1984
0
68
Member Avatar for SID.SIL

Hi Guys It´s my first time here and Of course I have a problem. I have a gridView with a Hyperlink and I´d like to open a Modal Pop Up when I to click in this link. How can i do it? is it possible? Thanks a lot everyone regards

Member Avatar for SID.SIL
0
931
Member Avatar for ItecKid

Ok, so I have to write two (OO) Perl modules. One the them, in one of it's subroutines, needs to call the constructor of the other module. According to my professor, this should be doable without the classes having working knowledge of each other. For example, if I have: [code=Perl] …

0
63
Member Avatar for orwell84

Hello, I'm just wondering how you would go about exporting the matches that regex finds. For example, if I were to have the following code, which matches all the digits in a string and (supposedly) reads them into an array, which is then displayed: [CODE] @numbers = ($string =~ /\d*/); …

Member Avatar for KevinADC
0
94
Member Avatar for ITSAMB

Hi, I am trying to use XML::Xpath for XML processing. When I try to use it in code, it is throwing an error [B]501 Protocol scheme 'y' is not supported y:/.../dcr4.5.dtd. Handler couldn't resolve external entity at line 2, column 36, byte 75 error in processing external entity reference at …

Member Avatar for KevinADC
0
146
Member Avatar for ItecKid

Ok, I'm not sure if the above title made sense, here is what I am trying to do: Suppose I am writing a module that looks something like this: [code=Perl] package Whatever; use strict; use warnings; #constructor--will take one argument when called sub new { my $class = shift; my …

Member Avatar for KevinADC
0
89
Member Avatar for mjump54

I have a perl script that works fine on my windows XP and a vmware W2003 server... but when I install it on the customer hardware, i get the following errors. Use of uninitialized value $setpub in substitution iterator at C:\scsinput\SaxoOTF.pl line 133. Use of uninitialized value $setpub in substitution …

Member Avatar for KevinADC
0
255
Member Avatar for mainak001

How to call crystal reports 10.0 through Perl script and how to save crystal reports data to excel .....?????????

Member Avatar for KevinADC
0
231
Member Avatar for joydsouza90

When i start my computer, all i get is a blank black screen. If i open task manager i can see that explorer.exe is running but under CPU it shows 0. I have to end explorer.exe and restart it from "run" each time to get my computer to work. How …

Member Avatar for francisabey
0
102
Member Avatar for sparso

I am in need of a script that reads a log file, takes some data from the file and saves it in a .csv (coma separated value) format. The example log is below: log.txt: Date: 3/14/09 Device #: 1 Test: Cont: pass Test: Leakage: pass Test: INL: 0.88 Test: DNL: …

Member Avatar for Gribouillis
0
186
Member Avatar for ashkash

I have a number of files in a folder that are named as numbers like 1, 2, 3, 4, 5, 6, etc. I also have a text file in the same folder that identifies each of these numbered files and gives their path location. The text files looks like this: …

Member Avatar for Comatose
0
190
Member Avatar for rejoicegants

I am facing problem with running perl script inside php file. Please find my simple perl and php program below. I have installed both php and perl successfully in my windows machine. test1.pl print "Hello from perl! " test.php <?php print "Hello from PHP! "; passthru(“perl test1.pl”); ?> The passthru …

Member Avatar for darkagn
0
73
Member Avatar for Silver Snail

I have created a simple HTML and Perl test to figure out how to properly get a browser to re-Post form data to a new URL. The raison d'etre for this test is to figure out the best way to re-Post the shopping cart order form data to PayPal after …

Member Avatar for Silver Snail
0
897
Member Avatar for sid78669

I am trying to use the rand function to generate numbers from an array containing 3 ranges. This is unfortunately not working. I know I am doing something wrong, either with rand() or with my array declaration. Can someone please correct me: [CODE=perl] my @numbers = [48..57, 97..112, 65..90]; $num …

Member Avatar for KevinADC
0
97
Member Avatar for khalidmehmood

Hi Experts! I am developing a online shopping module I am new to JSP. I have develop the interface as under for one product: Product Name Manufacturer Stock Quantity Price <Input text field to input quantity to purchase> hyperlink Buy Here that pass the parameters product ID, product name, price …

0
93
Member Avatar for invisal

* [B]Edit:[/B] Sorry about double negative on the title, I don't know how to edit it back First of all, I am fairly new to Microsoft Access VBA. I created a form with 2 textbox (txtUsername and txtPassword) and one label act as button (I use label instead of button …

0
81
Member Avatar for Homee2010

Deer peepul, Just recently, I am unable to access hyperlinks from OE. Not only that, but my computer freezes up when I click a link imbedded in an email. I run XP/SP2, and OE 6. This is driving me batty.... Thanks!

Member Avatar for caperjack
0
80
Member Avatar for redZERO

Hi I am having problems with BufferedImage. What i would like to do is create a bufferedimage from an image stored on the hard disk. For example, i create a new file pointing to this image file. From this I would like to create a BufferedImage.

Member Avatar for peter_budo
0
65
Member Avatar for c0dex

Hey all, for quite some time I've been working on an inventory management program for work, and I'm having a bit of an issue with the rendering of a JFrame notification window, I'll do my best to explain below (including screenshots). So my program works with a remote FTP server …

Member Avatar for JamesCherrill
0
204
Member Avatar for GiangsonDuong

My wireless card and ethernet both connect to the network, but when I try to use a browser or any other program that uses the internet I get no connection. I've tried resetting the winsock and the internet protocol but neither worked. I made a call to verizon tech support …

Member Avatar for uthman4u2nv
0
145
Member Avatar for perlseek

Hello everyone, I am creating a script which will send me a notification by email. But in that email my first line should be bold. print OUF "\nFirst notification\n"; here i need that [B]First notification[/B] should be in bold

Member Avatar for Comatose
0
32
Member Avatar for karthik.c

hi guys ,im new to perl programming and when i programmed tcp client-server coding in perl i encountered some problem saying : Can't locate socket.pm in @INC (@INC contains: /usr/lib/perl5/5.8.5/i386-...) i tried this in linux-centos and version of perl im using is: v5.8.5 my program was like this: tcp-server: [code=perl] …

Member Avatar for karthik.c
0
185
Member Avatar for dattaforit

Dear Friends, I have a windows dll, in my perl script, i am able to load the dll using the Win32::LoadLibrary function and also i a getting the function pointer of the function in the dll, I am using Win32::GetProcAddress function to get the function pointer of the functions in …

Member Avatar for KevinADC
0
233
Member Avatar for k2k

hi , i am pretty new to perl and I have a quick question. below the code won't work unless fileName is under the same directory. would any one please give a quick reference in how to specify the full address of the file? such as /home/myName/fileName [code] #!/usr/bin/perl cat …

Member Avatar for k2k
0
77
Member Avatar for arnaud257

Hi, Using dreamweaver / webassist extension / Apache 2.0.59, MySQL 5.0.41, PHP 5.2.6 on a mac: After selecting my criteria on my search page I go to a result page where I display several information from my database. I have 10 results per page and each result has field displaying …

Member Avatar for arnaud257
0
195
Member Avatar for raghavendra83

Hi All, I am trying a simple program in PERL, but unable to get it working [CODE] $log="test.log"; open(LOGFILE, $log) or die("Could not open log file."); foreach $line (<LOGFILE>) { chomp($line); if($line eq "Raghu") { print "Found a group\n"; $var=<LOGFILE>; chomp($var); print "$var\n"; } } [/CODE] Whenever the line contains …

Member Avatar for KevinADC
0
184
Member Avatar for Sappster

Hi, I'm fairly new to web development and very new to Perl (although Im picking things up as I use it more) I am currently working on a cgi application as part of a web site. The application is written in perl and I need some image manipulation. I have …

Member Avatar for KevinADC
0
79
Member Avatar for sillyminds

Please provide me a method or script for opening remote connection to remote windows systems from a windows system for doing admin tasks like assigning a local user admin rights to the remote windows system. Well Win32 Net:Admin can be I think, used for getting local user properties or group …

Member Avatar for vharry
0
104
Member Avatar for dattaforit

Dear friends, I want to use the Win32::GuidGen() in my perl script. My Perl version is 5.8.9 and it is on windows(64 bit). For this function, i will require win32::API, for where can i get the win32::API module for windows 64 bit. Please do the needful. Thanks in advance. Regards,

0
47
Member Avatar for southernd0529

[code=cplusplus] #include <iostream> using namespace std; int main() { const double WEEKS=5; const double TAXES=.14; const double CLOTHINGEXPENSES=.10; const double SUPPLIESEXPENSES=.01; const double SAVINGSBONDS=.25; const double PSAVINGSBONDS=.50; //Declaration Section double hours, rate, taxes, grosspay, netincome, clothingexpenses; double remainingbalance, savingsbonds, psavingsbonds, suppliesexpenses; double finaltotal; //Input Section cout<<fixed<<showpoint; cout.precision(2); //sets the 'double' …

Member Avatar for southernd0529
0
132
Member Avatar for eapln
Member Avatar for eapln
0
95
Member Avatar for curtissumpter

Hi, Everything else in this code works properly but the keyTyped method is not working properly. I have been working on this for sometime. Any help would be appreciated. Also, any advice on getting my southPanel to appear when I start the application? It appears but only after I expand …

Member Avatar for sciwizeh
0
139
Member Avatar for klactose

Hello, I was wondering if there was a built in feature in perl to convert each character in a string to its corresponding ASCII value. Or is this something that I have to program manually?

Member Avatar for KevinADC
0
61
Member Avatar for spivey

I have tried getting my Perl 5.8.9 installation configured for Mysql. I have used cpan and PPM to get mysqlPP, DBD::mysql-simple modules. I am trying this on Windows XP with Mysql 5. Here is my latest error: C:\>perl c:\perl\test.pl DBD::mysql initialisation failed: Can't locate object method "driver" via package "DBD::mysql" …

Member Avatar for KevinADC
0
259
Member Avatar for mtramnes

I started a thread last week with a problem that i have since figure out. Now my problem is this. I need to take a file called "gettysburg.txt" and make it so each word is printed on its own line in a new text file called ex1out. When I run …

Member Avatar for Comatose
0
80
Member Avatar for yair7190

Although it sounds pretty simple, i haven't found a proper answer for this issue. I want to know how can i call a perl script and pass a variable to it. For example, lets say "Parse.pl" is a parsing script of some sort and i want to call it from …

Member Avatar for bryansmith123
0
321
Member Avatar for ITSAMB

Hello experts, I need your help in installing a Perl module. I am trying to install XML::LibXML on development server from couple of days now. I do not want to compile and install the module manually, as it needs some C components. I would like to install the binary distribution …

0
71
Member Avatar for sjcomp

Hello, I'm reading a wav file and I'd like to output normalized samples. I do it in a for loop, but I was wondering if I can do it more efficient. I also have a filling that I'm not utilizing all the features of the language to make this code …

0
55

The End.