473,543 Members | 1,897 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.
4
978
thread by: sasimca007 | last post Apr 24 '08 by: numberwhun
Hello friends, I am using a form within a form that is as below: <form name="frm"> my $i = 1; while(some loop) { <form name="Form$i" id="Form$i"><input name=subloc type=text></form> $i++; }
9
2,253
thread by: MyMarlboro | last post Apr 24 '08 by: MyMarlboro
In C:/perl I have a.txt b.txt c.txt d.txt use File::Find; $filedir='C:/perl';
3
1,281
thread by: poolboi | last post Apr 23 '08 by: numberwhun
hi guys i'm just starting to explore cgi scripts hm..just a basic question how do i run a simple like below? i got it from cpan but they didn't explain what i should do #!/usr/local/bin/perl -w use CGI; # load CGI routines
8
2,415
thread by: poolboi | last post Apr 23 '08 by: poolboi
hi guys, i just did printing to a certain file #!perl\bin\perl use strict; use warnings; my $t; my @ok;
1
1,077
thread by: racshah | last post Apr 23 '08 by: nithinpes
Hello, I just started writing the script to connect to a virtual machine using ftp command in perl. (I am having the Windows OS and the virtual machine has Linux) The code is: Line1: system("ftp 10.58.3.48"); Line2: system("ls -l");
1
1,171
thread by: zcabeli | last post Apr 22 '08 by: KevinADC
Hi, i want to refer to variable using a string that represent its name. i.e. in this example (which doesn't work ) i'd like to place value of 6 in 'y': $x = "$y"; $y = 5 ; eval($x) = 6;
1
1,083
thread by: zcabeli | last post Apr 22 '08 by: nithinpes
i'm looking for a way to extend a list of 2 elements that represent boundaries, to the entire range. for example: input list = output list would be = i can make it using the following semi-pseudo code, but perhaps there is an easier way, more elegant... $i = 0;
1
1,282
thread by: zcabeli | last post Apr 22 '08 by: KevinADC
can i define hash of lists: for example my %hash = { "list_A" => (2, 3 ,4) "list_B" => (3, 2, 1) }
4
1,572
thread by: ljsmith91 | last post Apr 22 '08 by: Ganon11
I am reading in a file that has a list that of items. The items I place into a scalar for print but when i do, there is an extra unwanted charachter that shows up at the end of each item. It looks to be some hex charachter. It does not exist in the original file. Is this some sort of charachter set and can I remove it with a substition routine? ...
1
1,053
thread by: dtmnuclear | last post Apr 21 '08 by: KevinADC
I need to run an executable a number of times with modified input decks. The input deck I use is fixed format and I need to replace line 80 for each of the different runs. I was wondering how to open the input deck, go to line 80, REPLACE the text, save the input deck, and then execute the code. Any help would be GREATLY appreciated as I have to...
2
1,323
thread by: jain236 | last post Apr 21 '08 by: jain236
Hi every body i have one question i have a script which executes every night. I want to hide my code to be viewed by others or convert it into EXE. is there any way i can achive it? thanking you in advance
21
2,772
thread by: poolboi | last post Apr 21 '08 by: poolboi
hi guys, a question on net::telnet what does this module do? cos i have a telnet client that will be able to communicate with a database so is it true if i enter my ip address, username, and password and using print later again to execute some commands i will get some results on some screen??
2
1,321
thread by: kumarboston | last post Apr 21 '08 by: nithinpes
hi all, i am processing a certain number of files from a directory and each file has around 5 columns and 200 rows with tab separated values. I am trying to grab each file and calculate the average value for each column and print it. Code works fine for the first file but the calculations for the 2nd file and onwards is wrong. May be some can...
4
4,103
gpraghuram
thread by: gpraghuram | last post Apr 21 '08 by: gpraghuram
Hi all, I am in the process of writing a small perl code which can read a PDF file. I want to know which perl library should i use for this. Like PDF::API2 or which one.... Thanks Raghuram
3
1,864
Ganon11
thread by: Ganon11 | last post Apr 20 '08 by: Ganon11
Hey everyone, For a class assignment, I am making a class scheduling CGI program/script. I have everything working so far except actually displaying the schedule as a grid/2D table. I am not very proficient in HTML, let alone Perl making HTML, so I tried to grab some code I found online and found two issues: 1) In the following code: ...
1
1,842
thread by: srkumar | last post Apr 19 '08 by: eWish
Hi.. I am trying to replace junk characters. I could not find the junk characters.. need help on this... Input File: <aff id="aff2">Institute of Astronomy, Bulgariaóšö×èë</aff> Output File: <aff id="aff2">Institute of Astronomy, Bulgaria&#x00F3;&#x0161;&#x00F6;&#x00D7;&#x00E8;&#x00EB;</aff>
1
5,682
thread by: jain236 | last post Apr 18 '08 by: nithinpes
Hi i just need to find the difference between to numbers . if i subtract i am getting the minus symbol,i just want the difference of two numbers . your help will be appreciated thanking you in advance
2
5,070
thread by: manishabh77 | last post Apr 18 '08 by: nithinpes
can anyone suggest how I can find files in directories and subdirectories and copy them into a new directory.I tried the following code but it doesnot do the job. $inputfile1 = "file_index.txt"; open(INP1, $inputfile1 ) || die("cannot open $inputfile1 in MAIN"); @names = <INP1>; close(INP1); foreach my $ref (@names) {
1
1,063
thread by: erbrose | last post Apr 18 '08 by: numberwhun
Hey all, I struggled with this code for the last couple days and finally got it working. Its still a bit noisy and could most definitely be refined, but thought I would share it. Basically, the script is being run on an ftp server, where we are sending 3 files to a read only folder, waiting for a group on the outside to download those files,...
1
1,088
thread by: vishwaramkumar | last post Apr 17 '08 by: numberwhun
Hi folks, I am beginner to tk. I have right simple code for tk. When i run as .pl the text content(lable,button) showing. But after conveting exe. The text in a tk(form) is not viewable it's showing as boxes. I used perlapp to convert exe. Exe converted without any errror.
1
2,070
thread by: idoha | last post Apr 17 '08 by: numberwhun
Hi, I am trying to determine the SNMP status on remote machine. I need to distinguish between two possible options, where the SNMP is not active: 1)When the SNMP listener is not active on a certain port (default is 161). This is caused when the SNMP service is off or when it listens to port other than 161. 2)When the communityString is...
2
1,336
thread by: JWest46088 | last post Apr 17 '08 by: numberwhun
Can someone show me an example on how to use cookies? I've been trying to find an easy example online, but I don't understand them. Here is what I got out of it, but it doesn't work: use CGI qw/:standard/; use CGI::Cookie; $cookie = new CGI::Cookie(-name => 'filename', -value => 'grades'); $cookie2 = new CGI::Cookie(-name =>...
1
2,319
rajiv07
thread by: rajiv07 | last post Apr 17 '08 by: numberwhun
Hi to all I have some problem to use DBIx::Class package My::Schema; use base qw/DBIx::Class::Schema::Loader/; __PACKAGE__->loader_options( debug => 1, );
1
5,495
thread by: srikantvm | last post Apr 17 '08 by: numberwhun
Hi All, I am using perl, v5.8.8 built for MSWin32-x86-multi-thread and i tried installing the DBD-Oracle module but unable to install. Please find below the steps followed by me: 1) I first tried installing Oracle.pm using the Activestate PPM but, i got an connection error to the activestate perl module repository. 2) Then i tried...
1
1,888
thread by: hamidashrafi | last post Apr 17 '08 by: numberwhun
Hi, I just joined to the world of Perl. I am using the Open Perl IDE. in the following script do you know how I can set the path so, the program understand from where is should open the file. When I ran it I got the following message in console. "Entering open perl debugger, connecting to port 1378...connected. >Program terminated." ...

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.