1,633 Topics

Member Avatar for
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
75
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
71
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
137
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
95
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
76
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
203
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
72
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 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
66
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
56
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
277
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
158
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
159
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
54
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
96
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
231
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
142
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
123
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
554
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
108
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
86
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
395
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
90
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
58
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
251
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
67
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
72
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
181
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
25
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
108

The End.