473,574 Members | 3,157 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.
1
1,523
thread by: pakito007 | last post Aug 17 '12 by: RonB
hi i would like to run a script BEFORE a folder open... if i open "/home" the script run BEFORE folder open?
4
1,620
thread by: karthik1chintu | last post Aug 16 '12 by: StephenHawking9
i should dispay a retrieved value from mysql database in a text field on clicking a button in perl..please any one help me
0
1,185
thread by: wshibl | last post Aug 15 '12 by: wshibl
I have a lot of files that have the same below format in different folders and I need to parse these files and add them in one file : X1 = 1 X2 = 2 X3 Y1 Y2 0.005 0.047539 0.029597 0.362143 0.078621 0.0087323 What I need to do is to write the above data in diferent format like that:...
0
1,066
thread by: starlight849 | last post Aug 13 '12 by: starlight849
I have perl script that I am testing on a remote server. I am using the Putty utility to connect to it. I am then attempting to do two things.. 1- Connct to a remote unix server that is on the network share and 2- Connect to (if possible) the local machine that I am working on (Windows box). Any suggestions?
1
1,677
thread by: korcanucar | last post Aug 6 '12 by: numberwhun
Hi all, I am using an external binary to view memory starting from a specific address and i want to automate this via perl however there are problems. Hope you can help me ..thx The output of the programme is like below: bash-3.2$ mem_disp 12B21D20 100 Opening RO Data Memory File scp.ro Opening Memory File CP2.16.0000000c.18.pmd.raw...
0
2,815
thread by: sravan | last post Aug 1 '12 by: sravan
I am producing 5 different Excel worksheets (.csv file) using Perl. I want to combine all these as one file (Excel workbook) with 5 different worksheets rather then have 5 seperate files. here is the script i'm using now .. #!/usr/bin/perl -w use lib "/csv2xl/lib/site_perl"; use strict;
12
3,593
thread by: starlight849 | last post Jul 31 '12 by: starlight849
Hi, I am working on a system that I do not have root access on.. Therefore I am installing some modules that I need to my home directory. So far when I installed the DBI class it worked fine. But when I go to install the DBD::Oracle module I get the error that perl Makefile.PL PREFIX=/homedirectory/PerlModules Can't locate DBI.pm in...
2
1,696
thread by: starlight849 | last post Jul 27 '12 by: starlight849
Hi, I have a shell script that I'm trying to call from perl.. What is the best way to go about this? I'm looping through a file in perl, passing a variable to the shell script, doing some stuff in the shell script, then need to return to perl and move on to the next line. Any advice would be appreciated..
1
2,090
thread by: omakhileshchand | last post Jul 26 '12 by: RonB
This is a txt file cat msg0008.txt ; ; Message Information file ; origmailbox=4031 context=Context_Test duration=10
0
1,258
thread by: deva6985 | last post Jul 24 '12 by: deva6985
I have use this code to make the progress bar.its working terminal i cant get the out put in web browser. I gonna use this code If you know the answer please hepl me: use Tk; use Tk::WaitBox; use Tk::ProgressBar; # print "test1"; my $mw="";
1
1,406
thread by: devapvos | last post Jul 23 '12 by: RonB
I got the <body onload=\"\"> loading progress but i need the loading progress for before html starts because i wrote perl code in one single variable then past it to html bode. perl loop take more time to load i need the solution please help me tosolve this.
0
1,179
thread by: Skyeheart | last post Jul 18 '12 by: Skyeheart
I have packages installed in /usr/lib/perl5 and /usr/lib64/perl5. Some packages which I build and install go to /usr/lib/perl5 and others to /usr/lib64/perl5. My question is how to do you set the install path for a Makefile.PL, Build.PL or cpan install? I need to make sure that all packages are going to the same path probably /usr/lib64/perl5 ...
1
1,248
thread by: Indu David | last post Jul 17 '12 by: numberwhun
Hi I want to automate testing of a PDA application which is developed on top of Windows mobile version 6.1. I am connecting the PDA to my desktop using a software MyMobileR version 1.23. Is it possible to automate this PDA testing using Perl Thanks in advance Indu
2
2,351
thread by: BigSky | last post Jul 17 '12 by: numberwhun
Created perl script to query oracle db to get directory path and file name. The script will form an UNC path to copy file to appropriate directory via a while statement and foreach loop. Script works just fine which copies one file at a time. I think it would be more efficient if I can identify if I had multiple files that go to same directory,...
3
4,467
thread by: omakhileshchand | last post Jul 16 '12 by: numberwhun
i were using server(centos 5.5) with perl 5.8.8 Now I'm using perl 5.10.1 my current server(centos 6.3) Whenever execute my programming I got this problem :- install_driver(ODBC) failed: DBI version 1.609 required--this is only version 1.602 at /usr/share/perl5/Exporter/Heavy.pm line 241. Please guide me..
1
3,934
thread by: ommz | last post Jul 16 '12 by: numberwhun
Why do perl console windows close immediately after the script finishes to run even if there was some output to show? I want my scripts to pause and show the results and oonly close after the user clicks the close button.
3
3,959
thread by: Ramkumar85 | last post Jul 6 '12 by: aselder
Hi All, I have received some other date value from the .xlsx file. Used the Spreadsheet::XLSX module to read the data from the file. Source file value : 19/07/1988 14:00:00 The actual data : 32343.58 ( The values return from the cell while read the data from that cell). I also used the...
3
1,731
thread by: armbsu | last post Jul 2 '12 by: numberwhun
Hello, I am a beginner in Perl. I am trying to read and then process a pipe delimited file. My file looks something like this- size|3 directory|c:\unicorn sub-directories|sub|new..... The examples I have seen online show code where it is known how many columns the file consists. However, this is going to be a configuration file and...
1
1,683
thread by: PANDIYAN07 | last post Jun 28 '12 by: numberwhun
Hi All, by using post method ,i cant see what are the values passed in url, is there a way other than GET to achieve this, i heard there is a way by using perl scripts.How to create perl scripts to submit data on web pages in particular URL . I would like to use some more scripts instead of submiting the data through POST and GET methods in...
1
1,982
thread by: Ramkumar85 | last post Jun 25 '12 by: numberwhun
Hi All, I used LWP::USerAgent module to get the data from the URL. If the URL get slow or some other reason to take the data more than 60 seconds need to exit from the method. Is there any way to quit the method while get method processing more than 60 seconds. Regards, Ram. I used the below code to get the data's from URL.
2
2,156
thread by: Ramkumar85 | last post Jun 22 '12 by: Ramkumar85
Hi All, I received the some other foreign character while read the data from xlsx file. Source xlsx file data : ΠΣ15 ΑΡΧΗΓΟΣ ΠΣ ΚΟΚΚΙΝΑΚΗΣ ΑΛΚ Output for the data : *Σ15 ‘ΡΧ—“ŸΣ *Σ šŸšš™Ν‘š—Σ ‘›š I used "Spreadsheet::XLSX" module to get the data from the file. Please check and provide some solution to resolve the...
1
2,323
thread by: Akino877 | last post Jun 21 '12 by: numberwhun
Hello, I am new to regular expression and wonder if someone could please help me with matching any number of words followed by a number. I've tried the following : $str = "aaa bbb ccc -45"; while ($str =~ m/(\w+)+|-?\d{1,2}$/g) { print $1; }
1
2,121
thread by: aurekha | last post Jun 21 '12 by: numberwhun
Hi All, Im stuck with the problem is like, i am unable to include external css files in perlCGI. Below is the code: #!/usr/bin/perl use CGI qw(:standard); use CGI::Carp qw(warningsToBrowser fatalsToBrowser);
1
1,527
thread by: Diana Magbanua | last post Jun 18 '12 by: RonB
Hi all, I know that when you use symlink in Perl, you are creating a symbolic link from one file to another. My question is, say you linked file A to file B, then you used file B as input for another program, whose output is also a file. Is the resulting file a symlink file, too? I've done this and the resultant file is giving me some problems....
4
3,010
thread by: omakhileshchand | last post Jun 13 '12 by: omakhileshchand
I'm not able to insert the value into a SQL Server database from a Perl script in Linux code is given below: #!/usr/bin/perl use strict; use DBI; use Data::Dumper; use Asterisk::AGI;

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.