473,543 Members | 2,496 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Perl Forum

Perl programming language - ask questions about perl programming, syntax, variables, scoping, constructs, operators and functions, files, I/O, regular expressions, regex, subroutines, OO (object oriented), perl modules, CGI and more.
5
1,840
thread by: bir | last post Feb 24 '07 by: bir
I have a folder which contains the xml files with the word CICM in the filename (can also contain some other files) I need to search for all these xml files and create a single zip file for all these xml's. Currently i tried searching using the $File::Find. Please correct me in my code here or else if there's any other better option...
0
1,564
thread by: debanjan | last post Feb 26 '07 by: debanjan
Hi, I want to read a MS word table from a specific page no. of an MS word file. Can anybody tell me how to do it... Debanjan
1
6,121
thread by: tito | last post Feb 26 '07 by: miller
I have used use Spreadsheet::WriteExcel::FromDB::Query package to retrieve the values from database to Excel sheet using the following program. use Spreadsheet::WriteExcel::FromDB::Query; my $dbh=DBI->connect("DBI:mysql:tito:localhost","",""); $query=q{SELECT Engg_ID from mastertable where Project_ID='8'}; ...
1
1,205
thread by: vijaymanoharraog | last post Feb 27 '07 by: KevinADC
Hi all, I am new to perl programming, Can anyone explain me how to generate the Test data for a database using Perl scripts. Is it necessary to use Excel sheets with perl to generate some sample data or, Can we directly generate it, If so please tell me the procedure. with regards, Vijay Manohar Rao Gujja
6
2,799
thread by: ramyaamar | last post Feb 27 '07 by: KevinADC
if some one knows,how to parse a error log files and send the parsed date,error pattern to the Database..plz let me know!!
19
2,336
thread by: corefile | last post Feb 28 '07 by: KevinADC
I want to create a script that increments a value I specify a certian amount of times that I specify. for instance somescript.pl -i 192.168.1.1 -n 254 -i is the value that I want to increment -n is how many times I want it to increment the output of the file would be to a file such as something like this. my ip is 192.168.1.1
7
2,995
thread by: bir | last post Feb 28 '07 by: docsnyder
I am creating a zip file in say c:\Archive, location(could be a network drive also) i need to check whether there is enough space for zipped file to fit in C:\archive. Currently what i am doing is first creating a zip file in the same location C:\Archive and then comparing the size of file with the disk space available. But the problem is i...
3
13,879
thread by: Iris83 | last post Feb 28 '07 by: docsnyder
Hi, Im a new to perl and i hope there are people here that can help me! I have a realy large file like this. 1,12,T, 2,13,B, 3,14,T, 4,15,B, I want to use the 2nd and 3th column and put it into a hash like
1
2,474
thread by: keerthivasan86 | last post Feb 28 '07 by: KevinADC
I need to write a PERL script to compare two files not in the same sequence. ie. Take one line from first file....compare with all lines in second file....If there is no match....put it in a third file If there is any match ...leave that line...and go to the second line in the first file....again compare with all lines in second file. ...
11
2,276
thread by: jonathan184 | last post Feb 28 '07 by: jonathan184
script to search for keywords in files in a dir Basically the script consists of a file with part numbers I got a dir with files I want to search the files line by line and if a line has the part number I want it to print that line to an outfile file. I did this script but it does not find matching products. I aded an else statement and...
3
2,000
thread by: das | last post Mar 1 '07 by: miller
Hi all I am working in Perl from last three months;but using DBI module first time. While accessing Oracle DB through Perl I got a problem given below..... when give SQL statement in mysql it is working well ,it is giving all info about that required data e.g if in a table data e.g das has five rows then it is working well and displaying all...
4
1,117
thread by: rodrigopr | last post Mar 1 '07 by: vpmurdan
I am trying to make an script that reads a line from a file and deletes it and continues like this until the last line. The catch is, that there is an application writing to this file so I can not just move it somewhere else and create a new file. I am trying to do this in windows (which makes it a bit more difficult for me). If anybody has an...
7
2,225
thread by: group8perl | last post Mar 1 '07 by: vpmurdan
I have this perl code written using Notepad which works fine using Apache but when i try to run the perl script on a Linix browser i get a program/script failure error. Can someone please help me understand why this error is occuring #!/usr/bin/perl $filename = "ROOMS2.txt"; open(FILE, "$filename") || die("Unable to open $filename:...
13
1,782
thread by: Iris83 | last post Mar 1 '07 by: miller
Hi, I have a question about converting some of the data in my dataset but leave some data the way it is. I have a hash and if the key is present and the Value of the Hash equals B it should convert these number but if B is not present the data should remain the same. my output is that all the data is converted not in the only the cases...
15
2,183
thread by: SAIRAAM | last post Mar 2 '07 by: SAIRAAM
Hi I Am Just A Beginer Of Perl.. I Just Want My Perl Coding To Connect To A Database... For Which They Specify I Need To Create A Dbi Module Can U Help Me In Creating A Dbi Module
0
1,025
thread by: skrishnaveni | last post Mar 2 '07 by: skrishnaveni
Hi, Suppose there is an xml with the following format: <people> <name1> <address1>abc</address1> <city1>abc</city1> </name1> <name2>
4
1,639
thread by: group8perl | last post Mar 2 '07 by: miller
I have a Perl script which also has some HTML. I managed to get the images to display on explorer using Apache but when using Linux and Firefox the images are not displayed. When using right click properties it knows the location of the images but it is not displaying them. Any help would be appreciated. Thank You
8
10,943
thread by: coolvjay | last post Mar 2 '07 by: miller
I was writing a perl program where I have to add one environment variable. like RCS_ROOT. I tried to use system( " setenv RCS_ROOR ****"); i also tried system(" export RCS_ROOT=********"); But nothing is working .. when i run it tell no file called setenv. Please let me know how to set userdefined env. using perl. Basic idea is set some...
3
4,001
thread by: rahatekarabhijeet | last post Mar 2 '07 by: miller
I want to create excel sheet using perl, i had installed all the necessary modules from CPAN. The perl program i taken from CPAN itself it is given below, #!/usr/bin/perl -w use warnings; use strict; use Excel::Template; # Create the Excel template my $template = Excel::Template->new(
3
3,921
thread by: skilroad | last post Mar 2 '07 by: miller
I am newbie in Perl pragramming! I want to write a perl script to execute several linux command like ------------------------ cd cds source .bash csh source .asic icf ------------------------ at that time when I start to run an application in linux, I have to type these commands, it take time!
14
2,656
thread by: group8perl | last post Mar 2 '07 by: KevinADC
am getting syntax error, can someone please explain how to insert a hyperlink into a table.
4
2,443
thread by: Studentmadhura05 | last post Mar 2 '07 by: KevinADC
I was asked to use the local machine to code in PERL using ActivePERL software. I have no clue how to use it. I am trying to figure out but some quick help will be highly appreciated. Thanks
3
1,549
thread by: baskar2007 | last post Mar 3 '07 by: baskar2007
hi I am new to perl and can any body explain what is modules and how to install it. i am using window version ActivePerl 5.8.8 Thanks and regards Ram
5
1,485
thread by: mugen8 | last post Mar 4 '07 by: KevinADC
Hello, Ive written a perl script which should tree scan all my directories and print each passing file.. the problem is that after the first directory it enters some dots after the slash.. can you please tell me where is my mistake.. thanks for your help (P.S i know that there is such a module however i prefer writing it by myself) #!...
0
919
thread by: rellaboyina | last post Mar 5 '07 by: rellaboyina
Can anybody help me out please..... I had an XML. It will consist of a number of similar type of tags and what I want to do is to process a certaing group of methods on each of these similar group of tags everytime. I tried it out with XML::Twig. But not able to get it as I am new to Perl. Can anybody help me out in this please..... ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.