2,452 Topics
![]() | |
i have made a bulleted list that retrieves its items from a database dynamically. i want to convert these items into a hyperlink such that each link is for a seperate page. and also i dont want these as linked button. please help. | |
Hi all, I was wondering if any of you have had any experience with Catalyst and Moose. I am starting a project that I think would use both. I plan to use mod_perl or fast_cgi with Catalyst as the framework and Mason as the template language (I have used Mason … | |
is it possible to open and work in two files from same or different location simultaneously. How it is possible? Please suggest Thanks / Regards Mahesh | |
I want to get rid of all my paper documents. (that I'm able to) These include recepts, invoice copies, bills, college work, sketches, etc. What software is best to use for this? I'm running Windows XP and have a scanner. My main concern is document organisation after I have scanned … | |
Dear Daniweb Community, Like I've previously explained on an other topic, I'm trying to delete lines of a csv file where the value of a column is equal to a fixed value. In other words I have to check if a specific column value for a line is equal to … | |
Hi....I am very new in perl and maybe My question can be very simple...I created hash of hash and I filled it.. But I cannot access any element of it...This is a part of my code;; %doclen=($putword=>{id => $words[2]}); Can somebody write any sentensize to access any element of ths … | |
Hi all, I'm very new to perl but I will try to explain where I am at the moment. I have a lot of information in a .csv file. The 2nd columb has different values relating to different things. For example "no" = nokia, "se" = sony ericsson, "ip" = … | |
Thanks for reading my post. I just started perl programming. I need to print the prime factors on the screen. but when I executed my code, it shows nothing. I dont know what else to do. This is the code I got... [CODE] # number to factor is passed as … | |
hi just wanna ask is it possible for perl to get the value of a print command? for ex. my $result = print "hello world\n"; print "$result\n"; why is it that the "print $result" would print a value which is 1?.. is it possible to get the result "hello world" … | |
Okay this has got me stumped. i am designing a site but the content div isn't expanding all the way down to the footer div in opera and firefox but it is in IE. Not had this one before and have tried adding various height:100% and min heights to the … | |
I just upgraded my server and now a simple log script reaks of errors. [code]#!/usr/bin/perl use CGI ':standard'; use warnings; $database = "/full_path/filename.shtml"; $shortdate = `date +"%D %T %Z"`; chop ($shortdate); open (DATABASE,">>$database"); print DATABASE "$ENV{'REMOTE_ADDR'} - $shortdate - $ENV{'SCRIPT_URI'} - $ENV{'HTTP_USER_AGENT'}<!-- - $ENV{'HTTP_REFERER'}--><BR>\n"; close(DATABASE); { print "Content-Type: text/html\n\n"; print … | |
Hello, the following code is not exactly working properly. Bascally when I enter + in the dialog box it escape but still increments in the calculation. So for instance if I first enter a word "hello" then I click OK button then I enter word "there" then I click OK … | |
We have this scripting working on one server and are trying to transfer it to a different server and we are getting this error the working server is fedora fc7 the new on is fedora fc12. When we run the script from a command line we get: web root 23:42:09 … | |
If i fork off a parent and want to fork of fthe child, can i pass new variables from the child to the "grand -child"? PL help me clear this concept. | |
I wasnt to fork from a parent and execute two perl codes simultaneously rot13.pl and pi.pl.I want to keep track of the pid's of both children. i am not aware how to do it within the system() cmd. I have written the code below. But something tells me I'm being … | |
Hello everyone, I'm currently working on an automated process which extract user info from AD with csvde, then do some treatments with perl scripts, convert the csv file into xls in order to do some modifications by a specific user in Excel, then convert the xls to csv, format it … | |
Hi, I have a file.txt, I need to enter the data in string. Currently my code looks like this, [CODE]#!/usr/bin/perl open myfiles, "file.txt" or die "couldn't find file: $!"; while (<myfiles>){ $string .= $_; } print $string; close(myfiles);[/CODE] The output when I print the string is like hello.c work.c office.c … | |
Hi gusy, Can any one suggest , how to install DBD::mysql on windows mechine. (Its eating my head). I tried all the possible ways , but its not installing. 1) I tried to install directly from cpan , failed 2) manually downloaded, and tried to install, still failing : showing … | |
Well like the title says, everything was alined fine, untill I added the Shell, it's the shell I want to resize, but if I pass wx.Size(100,100) of self.console.SetSize((100,100)), it doesn't work :f What am I doing wrong? [code=python]class DEDITOR(wx.Frame): def __init__(self, *args, **kwds): # begin wxGlade: DEDITOR.__init__ kwds["style"] = wx.DEFAULT_FRAME_STYLE … | |
Hey there... I got a website which i want to work properly... But i cant make it work properly without image popup working properly... PHP and HTML code: [code] <?php if ($handle = opendir('./bsbilleder')) { while (false !== ($file = readdir($handle))) { if(substr($file, 0, 1) != ".") { $bspic = … | |
Hey... I've got some problems with jQuery. Code: jQuery: [code] <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript"> $(document).ready(function(){ $(".bspicdiv").animate({height:0},"fast"); $(".bspicdiv").animate({width:0},"fast"); $(".bspic").click(function(){ $("#box").animate({height:500},"fast"); $("#box").animate({width:500},"fast"); $(".bspicclose").click(function(){ $(".bspicdiv").animate({height:0},"fast"); $(".bspicdiv").animate({width:0},"fast"); }); }); }); </script> [/code] PHP/HTML: [code] echo "<a class=\"bspic\" href=\"#\"><img border=\"0\" src=\"./bsbilleder/".$file."\" height=\"80\" width=\"80\" /></a>"; echo "<div class=\"bspicdiv\"><a href=\"#\" class=\"bspicclose\"><img border=\"0\" src=\"./bsbilleder/".$file."\" height=\"450px\" width=\"450px\" /></a></div>"; … | |
I am trying to learn CGI programming in PERL. I have a simple test page that I want to try out, but when I upload it and try to display it as a web page, all I get is the source code. Can anyone help me out? I'm not sure … | |
cant get this to display on webpage. Apache is setup correctly. Getting error "[COLOR="Green"]malformed header from script. Bad header=04/19/2010: date.pl[/COLOR]" where am i going wrong? [CODE]#!/usr/bin/perl use strict; use warnings; use POSIX qw(strftime); my $cur_time = strftime "%a %b %e %H:%M:%S %Y", localtime; print "$cur_time\n"; open PS, "/bin/netstat -nra 2>&1|" … | |
I have ordered points(x,y) for a route and i got a method optimize which removes consecutive points which distance between them is less than delta (delta=3). The first rule tells that if p1 and p2 distances are lower than delta, then remove p2 from my route. Second rule is same … | |
| |
I need to compare columns widths and data types in a txt file using a template. Here is a bit of code that I have been working on, just need some help doing the comparisons using unpack. - perlnewbe... #!/usr/local/bin/perl use strict; use warnings; my $foo = (); my @bar … | |
hi all, i've a file named "a.config" with the line "CLUSTER_NAME[\t][\t]cluster1" by [\t] i mean tabs. now i need to change the value cluster1 to someother value, say autocluster. The code which i wrote was : [CODE]cat a.config | sed 's/CLUSTER_NAME[\t][\t] [A-Za-z0-9]*/CLUSTER_NAME[\t][\t]autocluster/' > a.config.temp[/CODE] [CODE]mv a.config.temp a.config[/CODE] but this doesn … | |
Hi, I want to search the log file for a string and extract all data until the end of that line where the search string is found. For example: A line in the file reads like below: [28/04/2010 11:17:53 GMT]PositionPoolCalculation.java(339):getPosCalculation[INFO]BUNP: B123456:1234567:ABCD ANP: B123456:1234567:ABCD:2 post LCN: DESabcdefgh I want to search … | |
Hi, I need to search 3 different servers and list the output of the directories to a specific file for each server. I understand how declare the constant(s) but unsure of how to iterate through all of the constants and list the file output. Any ideas would be helpful. Perlnewbe … | |
I have this code which not give me desired result I want output as same http://www.asteraweb.co.uk/wrap_example.html same as like first container have I have this code but its working on no. of word and missing some words in the last <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> … | |
hi im new with perl. just read some tutorials 3 days ago. just wanna ask if perl can automate a mouse click?.. how is this possible?.. could u help me with this?.. | |
![]() | Howdy all. I had an assignment to build a subnet calculator that would take (and validate) an IP and CIDR input and return the net_id, broadcast_id, first and last assignable IP addresses, and the number of assignable IP address. Would anyone care to look at my code and offer criticism? … |
Hi, I'm a Perl newbie and I have a job to do, but I can't do that! I'm almost crying! =( Please, someone help me? This is my problem: I have a txt file like this Config.txt SourceIP = 10.1.1.1 SourceMAC = 00d0047203fc IPProtocol = 7 -------------------------------------------- Then I have … | |
![]() | Hello! I've done some Googling about this, and many sites say that "hasing" is a better alternative than using a variable name with a variable name. I don't understand the concept of hashing, and what I'm trying to do seems small and insignifant, so I was hoping someone could help … |
I'm new to perl and need to read a txt file into a hash and then perfrom the following. Read in the file Create a Hash For each word in the file, count how many times the word occurs. Store the word a hash which is indexed with the words … | |
I have recently purchased ToCA Race Driver 3 for my PC. I used systemrequirementslab.com to check that it would work, and the only issue that came up was that Windows 7 was not released at the time and it was not officialy compatible. I found this website and I followed … | |
i have button in javascript, when i click ,it calls a CGI perl script and returns a download popup to me. Prob--> When javascript calling the script it starts a new thread redirecting to perl script and end. So i m not getting any action or response inside javascript. What … | |
I have downloaded a CPAN package 'Clickatell.pm' for use with a CGI script. I have uploaded it to the cgi-bin folder, set the permissions, but I can't get the script to use it. #!/usr/bin/perl use CGI::Carp qw(fatalsToBrowser); print "Content-type: text/html\n\n"; use lib '/websites/123reg/LinuxPackage06/ma/sa/re/masarestaurant.co.uk/public_html/cgi-bin'; package Clickatell; my $catell = Clickatell->new( API_ID … | |
I'm trying to send a http request to an url and check the content of the url using following script. However, by just check whether the content is empty or not can't tell whether a site is working. #use all required modules here; my $url = "a url here"; my … | |
[code] #!/usr/bin/perl $run_env = "test"; $parm_file = "wf_PBM_DHT_CS90_CH_Hist_Extract.parm"; $sys_id = "PWLP"; #div name based on the session's call $div = "WLD"; $CH_TYPE = "CS90CH"; #process name will be the process name in the trigger file $PROCESS_NAME = "CH_CS90"; #sys_name would map to the applicable Tier e.g. FAC=Facets, WGS=WGS, STR=STAR…. $sys_name … | |
i am passing a varible which i want to process as utf8. but correctly i am not able to process the varible passed from the command line in perl.. | |
Hi there I am translating PERL code into PYTHON Code My PERL code is if ( my $client = $dealing_clients->{ $data->{fundId} } ) And i translated it into python as if (client = dealing_clients[data["fundId"]]): But it is giving my following Error "Syntax Error While detecting Tuple" Any one know how … | |
[code] #include <iostream> #include <list> #include <numeric> #include <algorithm> using namespace std; int main() { // create linked list of integers list<int> the_list; // input as requested cout << " Enter length of the list " << endl; size_t len; cin >> len; for(size_t i=0; i<len; ++i) { cout << … | |
i am geeting the error The application failed to Initialize properly (oxc000007b) when I use departmental Script Tools | |
I'm having a little trouble understanding saving state data properly. What I have is 3 forms, which go into a summary, and then the user can click on register and register for the seminars. The data is then submitted to a database. Each form has a next and back button. … | |
Hello, I’m using Perl script where executing SQL query which connecting to SQL loader to insert my data into table. When the script runs the success status returns, but the loader doesn’t load anything to DB, I want to get the Perl return value to compare it. Here is the … | |
Hi. I am trying to match a string: "RemoveAcc $k: $v" There are an arbitrary number of spaces between RemoveAcc and the two variables...Preferably I would like to store these to variables using $1 and $2 after the string is parsed, but I do not want to save the RemoveAcc … | |
Hi there I have following hash related code in Perl that i need to translate in Python if ( exists $legs->{$reference} ) { logg(" 2nd leg of swapes: $ref - merging"); my $swap = merge_swap_legs( $legs->{$ref}, $fields ); $ref = new_fk_ref( $fxall, $ref, $swap ); } else { $legs->{$ref} = … | |
Hi i want to install this cpan CPAN-1.9402.tar.gz Crypt-Rijndael-1.09.tar.gz the prblem is t install it from /tmp and not networking Thanks Danny | |
Hi... I have been having problems getting sendmail to work. 5 hours and counting. Here's what I have: #!/usr/local/bin/perl -w use sql; use CGI qw/:standard/; use DBI; $mail_prog = "/usr/sbin/sendmail"; print "Content-type: text/html\n\n"; $to='member@hotmail.com'; $from= 'info@mydomain.com'; $subject='Your membership'; open (MAIL, "|$mail_prog -t"); print MAIL "To: $to\n"; print MAIL "Reply-to: $from\n"; … |
The End.