2,452 Topics

Member Avatar for
Member Avatar for tamsam

how to set the password character in perl script ,please help me and thanks to advans

Member Avatar for insertable
0
61
Member Avatar for Mahendra Jadhav

Hi All, I am new in perl, can anyone tell me how to read HTML template in PERL? Regards, Mahendra Jadhav

Member Avatar for insertable
0
97
Member Avatar for shrawansher

Hey I am a newbie to perl and I can't seem to solve this problem.My perl program executes some command files each of which create a log file in the format "server.YYYY-MM-DD.HH-MM-SS.XXX.log". After executing the command files i wish to parse through the log files created and look for errors.Could …

Member Avatar for insertable
0
189
Member Avatar for Mahendra Jadhav

Hi All, I am new in PERL. I want to copy 3 different types of files such as .gif,.js and .css from one location to another.. Please help me to write the script. Regards, Mahen

Member Avatar for JeoSaurus
0
78
Member Avatar for PhoenixInsilico

I have a very large text file. When I create a filehandle and assign it to array it shows out of memory. Is it possible to search upto a particular specified line only.

Member Avatar for d5e5
0
73
Member Avatar for tapandesai007

I have form where 4 buttons(Platinum, Diamond, Gold and Reset) are there, I have 3 Panel Control one for each of the first 3 buttons, what I want to do is that when I click on any one of the first three buttons the Panel for the respective buttons should …

Member Avatar for nick.crane
0
349
Member Avatar for Deepali_Jain

I am trying to run the following perlscript from php page. But unfortunately, it failed without giving any error. exec("PERL C:/Program Files/Zend/Apache2/htdocs/Scripts/test.pl"); But when I am trying the same perl command from command line interface, it runs successfully. PERL C:/Program Files/Zend/Apache2/htdocs/Scripts/test.pl Can anybody advise, where i am making mistake? I …

Member Avatar for Insensus
0
138
Member Avatar for haojam

Hi, I am running a perl script to retrieve common values in three columns at mysql tables. I would like to map three columns for finding same $chr, $start, $end or values within $start and $end if exists. I have attached the text files for two tables earlier. I would …

0
101
Member Avatar for magikman

I have the script below that hits devices with SNMP to pull back values on interface errors, load, etc. I would like to modify this script to pull free disk space. I am stumped on how to pull the data back and then calculate free space on each partition. If …

0
79
Member Avatar for terabyte

I've been programming a web crawler for a while, I'm almost done, it works perfectly but when it crawls vbulletin forums i get weird urls example: forum/index.php?phpsessid=oed7fqnm9ikhqq9jvbt23lo8e4 index.php/topic,5583.0.html?phpsessid=93f6a28f192c8cc8b035688cf8b5e06d obviously this is being causes by php session IDs what can I do to stop this? I tried using cookies with HTTP::Cookies …

Member Avatar for maninaction
0
205
Member Avatar for raghujosh

How can I pass multiple values from a JSP to a servlet using an hyperlink. Following is my code [CODE]<div style="width:500px;height:20px;border:2px solid blue; padding-top:25px; padding-left:40px; padding-right:20px; padding-bottom:10px;"> <jsp:include page = "/Alphabet.jsp"/> </div> <a href = "cart.jsp"><img src="shopping_cart.jpeg" width=50 Height=75 alt="Shopping Cart" border="0" style="float:right;"></a> <%@ page import="com.classes.chemical.*, java.util.ArrayList" %> <td width …

0
143
Member Avatar for boshu

I am building some SW modules in Linux environment and at the end of a build the artifacts are stored in the env in a particular folder called HW. This HW folder contains a number of folders underneath for individual targets and those contains one or more folders and files …

0
74
Member Avatar for grazinggoat

Hello - This is my first perl scripting try. I am trying to read a file into a hash so i can track it by id the file looks like this: ID FILNAME SIZE 1 logfilename 346202741018308 2 logfilename 0261512802421464 3 logfilename 612262297692848 4 logfilename 3268022049187 5 logfilename 888755246426701 6 …

Member Avatar for d5e5
0
1K
Member Avatar for Arthi Raman

Hi, I need to pass the value of hyperlink to another jsp page. For eg., <a href="sample.html" id="myAnchor">[B]sample[/B] </a> Now, i need to retrieve the value, [B]sample[/B] and pass it to another page. Kindly help me on this. Thanks.

Member Avatar for Airshow
0
58
Member Avatar for happy8899

Anyone got any example for me to test on the Win32::Process::Create to run on Window64bits, doubt that function couldn't be run. Any lib need for this to run on Perl 5.10.1

Member Avatar for shalini.singh
0
70
Member Avatar for vasuv

Hi, we have some scheduled jobs.The jobs will truncate the data and inserting the data and update the data.This process will happen daily. we receive files like truncate_file,Insert_file and update_file to our INBOX in scheduled time.once we got the update_file we will connect to front end application by using user_id …

0
59
Member Avatar for blacknred

I got a file: [CODE]I wake up in the morning What time? Always wakeup at 6am.[/CODE] what would be an easy way to determine the number of white spaces between each word? Thanks in advance David

Member Avatar for k_manimuthu
0
282
Member Avatar for thecrossibear

so i need to have a script that takes input from a command and parses it for some info im still pretty new to perl, but from what i understand, to do something like that youd have something like: [CODE] while ($line = <STDIN>) { blah blah blah } [/CODE] …

Member Avatar for thecrossibear
0
161
Member Avatar for Kerlix

I've found a simple timer program and it seems to work (for the most part). The problem is that certain cout functions aren't showing up. The timer originally didn't include milliseconds in the code, so I added them myself (which could be the problem) based on the code for the …

Member Avatar for Kerlix
0
291
Member Avatar for MDanz

The width spreads across the whole page, i only want it to be as long as the content in the div. How can i solve this? [code]<style type="text/css"> .three { display:block; width:auto; height:100px; position:relative; border:1px solid black; } .three a { width:100%; height:100%; position:absolute; } </style>[/code] [code]echo "<div class='three'><a href='two'></a>test</div>";[/code]

Member Avatar for Arkinder
0
108
Member Avatar for blacknred

I have a file of format: BRAND VERSION MODEL OPTIONS BOUGHT ------ ------- ------- ------- ---------- toyota lxi 2007 4 years ago nissan mxi 2008 3 years ago Actually the formatting goes awry when I save- So its Brand(toyota nissan under it) VERSION(lxi mxi under it) MODEL(2007 2008) OPTIONS -this …

Member Avatar for blacknred
0
161
Member Avatar for waterw1

hi im a beginninger at perl/cgi and this cookie is hard to understand lol. I'm trying to modify the script so that it displays an appropriate Web page if the name passed to the script is blank. but i get this in the browser: CGI Error The specified CGI application …

0
57
Member Avatar for senthilamp4

Hi Experts, Please help me, i am writing code for csv conversion, in middle i facing one issue. i have one array which contains 3 elements like wise @array contanis: var1= '455,0,0,0,0\n 135,0,0,0,0\n 199,0,0,0,0\n', var2= '131.253.4.131,1,0\n 131.253.7.54,1,0\n 10.80.5.3,1,0\n'; i need to convert like wise as below var1= '455,0,0,0,0 , 131.253.4.131,1,0\n …

Member Avatar for d5e5
0
98
Member Avatar for newbie21

I have two lists: list1 and list2 listing a set of files. For each file in list1 if a corresponding file exists in list2, I want the script to print the columns of common files. EX: list1............data1 1aw7_AB.fit => 1 2 3 1bjw_AB.fit => 9 4 7 1biq_AB.fit => 8 …

Member Avatar for d5e5
0
258
Member Avatar for hari kishan

Hi, This is my first post in the forum. I got a situation where i have to find a file in a folder based on its extension and there by use the file name and contents of the file. Thanks for the reply.

Member Avatar for d5e5
0
145
Member Avatar for amithlaxman

Hi, My program does 2 functions i.e. a) It creates text files b) The text files gets copied to some other locations. The program is as below: [CODE] $n=5; #Count of files to be created. for($i=0;$i<=$n;$i++) { print "\n$i file is getting created \n"; open(FH,">file_$i.txt") || warn "cannot create a …

Member Avatar for amithlaxman
0
126
Member Avatar for blah32

I'm trying to convert a bitstring to a signed 32 bit integer value. The bitstring is in big-endian. I can get this to work for unsigned values, I use: [CODE] sub bin2dec { return unpack("N", pack("B32", substr("0" x 32 . shift, -32))); } [/CODE] But I can't get it to …

Member Avatar for d5e5
0
615
Member Avatar for OneDreamCloser

Hello All, Could you please help me with the following VBA code that I have to understand (but I am not aware of VBA) [CODE]Public Function ErlangB(Servers As Single, Intensity As Single) As Single 'The Erlang B formula calculates the percentage likelyhood of the call ' being blocked, that is …

0
111
Member Avatar for sharad_85

hi there is a problem in my sound device........ my system stops producing sound after every minute or two. and resumes after a while.and sometimes it stops for eternity and i have to log off . i have talked to lot of persons but nobody was able to even discribe …

Member Avatar for tigerbright
-1
147
Member Avatar for Devvvt1

Hi Everyone, I'm new the forum and also Newbie to Perl programming. Please go easy on me. Any help or input will be appreciated. Thanks so much. Ragards, Vincent. I have the following requirements that need to write in Perl. Sorry for the long sentences below. Also please see attached …

0
89
Member Avatar for akasekaihime

we were asked to create a calculator in java applet......My codes are working except for one thing....whenever I click the clear button, it only erases the first,second and the total sum.....it does not clear the total difference, total product and total quotient....please help me what to do?...... here is the …

Member Avatar for akasekaihime
0
254
Member Avatar for ghosh22

Hi everyone.. I am trying to write a perl code which appends a text file after taking two inputs from the user. It saves the file in tab delimited format. I have the input text file attached here. Now I want the file to check if the user given input …

Member Avatar for ghosh22
0
431
Member Avatar for dotancohen

I am looking to learn best practices for working with strings. Two issues that I have with strncat are that it is difficult to calculate how much space to allow, and that there may not be a null character in the string after the procedure. So if I have two …

Member Avatar for WaltP
0
428
Member Avatar for gingerfish

is there any way to access some hyperlink on another webpage? the problem is that link always changes. thanks :)

Member Avatar for Shanti C
0
96
Member Avatar for tamsam

#================================== # Script: Finding and Replace word in excel # #======================================= use Spreadsheet::ParseExcel; use strict; use Win32::OLE; use warnings; use Cwd; use Win32::OLE qw(in with); use Win32::OLE::Const; use Win32::OLE::Const 'Microsoft Excel'; $Win32::OLE::Warn = 3; # die on errors... my $oExcel = new Spreadsheet::ParseExcel; my $oBook1 = $oExcel->Parse('path/find.xls'); my $Excel = …

0
95
Member Avatar for marathon

My new Dell Latitude runs Windows 7 Professional. I previously worked under Win XP Pro. The previous (XP) machine was used as the development platform for a website, which mined a database using Perl scripts. I need to recreate this functionality on the new machine, but it appears that Perl …

0
61
Member Avatar for Xokzin

Hi, I'm reading a file and trying to write it out with the current date in the file name. But I'm getting an error when trying to run this code[CODE]use D_Db; my $dbh = D_Db::connect('EDW'); my $Curr_dt=D_Dates::get_curr_ccyy_mm_dd({dbh=>$dbh}); my $sth4BobExt=$dbh->prepare("Select * from TableX"); $sth4BobExt->execute(); while ( my @BobExtrow = $sth4BobExt -> …

Member Avatar for d5e5
0
257
Member Avatar for senthilamp4

Hi Experts, Here i have trying and written the perl script for extract the information from csv file and create the output to another csv file. Contents are occured in row by row format in attached input file and also i have attached corresponding out file also. [CODE] my $dir …

0
70
Member Avatar for afatn

I'm new to php mysql. i'm creating website for my community. help me out... My web page has one search page. user to feed few letters in the search box. it is proceesed and the result displaced in a table. here is my code [COLOR="Red"]for getting input : search.php[/COLOR] [CODE] …

Member Avatar for afatn
0
754
Member Avatar for ineedsomehelp:3

[CODE]void printer(char x) { int d, b, z; for(z=x; z>=1; z--) { for(b=z; b<=x-1; b++) printf(" "); for(d=z; d>=1; d--) printf("%d ", d); printf("\n"); } }[/CODE] that's my code which is supposed to print 4 3 2 1 4 3 2 4 3 4 when input is 4. however, it …

Member Avatar for Arbus
0
215
Member Avatar for Xokzin

Hi, I'm using sql to extract data from the database tables. But the jobs are scheduled on Controlmem which are driven by the perl script. I'm still new in perl and I noticed that in order for the extracts to work I must have a -noq in the job. My …

0
74
Member Avatar for chaychie

Hi all, I am facing a problem here which would like to seek helps from the experts. I have a table which is able to display all the data in text field format from the database in a table. The users are able to edit the displayed data. I would …

Member Avatar for Hummdis
0
148
Member Avatar for senthilamp4

Dear Experts, Here i am written code for convert the text to CSV file conversion. i am facing a problem in while compare the two array to print the values row wise. below i have mentioned my code,input and output format. input : "OC192-11,OC192:CVS,0,COMPL,NEND,RCV,1-DAY,02-11,00-00,1" "OC192-11,OC192:ESS,0,COMPL,NEND,RCV,1-DAY,02-11,00-00,1" "OC192-11,OC192:SESS,0,COMPL,NEND,RCV,1-DAY,02-11,00-00,1" "OC192-11,OC192:SEFSS,0,COMPL,NEND,RCV,1-DAY,02-11,00-00,1" "OC192-11,OC192:CVL,0,COMPL,NEND,RCV,1-DAY,02-11,00-00,1" "OC192-11,OC192:ESL,0,COMPL,NEND,RCV,1-DAY,02-11,00-00,1" "OC192-11,OC192:SESL,0,COMPL,NEND,RCV,1-DAY,02-11,00-00,1" …

Member Avatar for poorrich
0
195
Member Avatar for vuyiswamb

Good Evening All I have Silverlight application and it is rendering better(not Good) in IE and it renders differently from different browsers, like IE8,Firefox 3, 4, and worse in Chrome. i tried different examples , i used one example that was good , but the moment i view this in …

Member Avatar for stbuchok
0
120
Member Avatar for pythonnoobie

I need to find a pattern of kind APP[a-z][a-z][0-9][0-9][0-9] in the body of HTML and then replace them with hyperlinks. I am using Beautiful Soup to replace as I am dealing with HTML content. For Eg: APPsd222 to [URL="http://www.dani.com/APPsd222"]APPsd222[/URL] APPfd333 to [URL="http://www.dani.com/APPfd333"]APPsd333[/URL] If you are not aware about Beautiful Soup, …

Member Avatar for pythonnoobie
0
241
Member Avatar for baig772

i am new to perl, before i ve ben working on php i want to knw that how i can run myperl script using wamp or how to activate perl in xampp please if any 1 can help me out

Member Avatar for senthilamp4
0
28
Member Avatar for Steve49855

Hello, I am new to Perl and am trying to write a script that will take a list of MAC addresses from a text file, and use them as parameters for a command line "wake on lan" executable program. The concept seemed simple enough. It's basically a batch script written …

Member Avatar for Steve49855
0
111
Member Avatar for Claude2005

Hello there, I installed [URL="http://www.activestate.com/activeperl"]ActivePerl[/URL] (I kept all default settings) and also downloaded [URL="http://search.cpan.org/~srezic/Tk-804.028/"]Tk 804.028[/URL] and extracted it to C:\Tk-804.029. I'm wondering why I keep on receiving this error whenever I run this simple script on my command prompt window (I'm using Windows XP Pro). [QUOTE]Can’t locate Tk.pm in @INC …

Member Avatar for jmichae3
0
756
Member Avatar for terabyte

I'm trying to convert html to plain text (remove all html tags) I don't want to use regex so I tried the module HTML::Parser and tried the parse() function but i got this error [CODE]Undefined subroutine &main::start called at getwords.pl line 27. [/CODE] and as a matter of fact I …

Member Avatar for d5e5
0
277
Member Avatar for svmer

Hi i want to know how to make space within hyperlinked text or images for example: <a href="http://www.daniweb.com">daniweb</a> <a href="http://www.daniweb.com">daniweb 2</a> so the output will be Daniweb daniweb 2 if add <BR> instead of </a> then it's now what i mean it's out put is that daniweb daniweb 2 is …

Member Avatar for almostbob
0
103

The End.