473,543 Members | 2,462 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.
3
1,416
thread by: chinnu2809 | last post Feb 19 '08 by: numberwhun
hi i have two dat files foldername06.dat(created on feb 13) and p_06(created on feb 16) both the files are output files and are same except the date which occurs on each line of the output now i have to write a perl code to compare only the two files not considering the date part such that they are equal . please let me know the code
4
4,259
thread by: mdshafi01 | last post Feb 19 '08 by: npidaparthy
Hi , I am trying to send mail from unix perl. I am using following code to send mail. It is not triggering mail and also it is not giving any error. please tell me any special settings are required or this program should be executed from special user with higher permission or something. please tell me.
15
1,476
thread by: john12345 | last post Feb 19 '08 by: KevinADC
Hi, I am newbie to perl, below is the script i have worked on which gives me exactly what i want. The only problem i am facing is speed. This script is mapping the AB,BA,IS,RT,ET from file1.csv and putting them into columns. file2.txt contains first column of file1.csv which i have cut using unix command (this i would like to avoid and map it from...
3
1,564
thread by: DNK2007 | last post Feb 19 '08 by: DNK2007
Hi all, Is it possible to write a perl program that do autofilling of the login webform(username, password) of other domain (say hotmail.com). Assume domain name, username, password are passed as arguments to the perl program. Thanks DNK2007
12
2,677
Kelicula
thread by: Kelicula | last post Feb 19 '08 by: Kelicula
I am trying to ensure that only files of a certain type can be uploaded. Why doesn't this work?? (It's a code snippet..not the whole file) if(my $file = $q->param('avatar')){
1
2,745
thread by: psiddhu | last post Feb 18 '08 by: numberwhun
Hi All, I am not able to run gmake in system command. I get the following output sh: gmake: not found but, if I run the command directly, it run fine. Let me know if anyone has faced it. Thanks Sid
15
2,262
thread by: senthilkumars | last post Feb 18 '08 by: nithinpes
i am running my perl script as "perl script.pl /root/sample/shadow .htpasswd" now i need to pass these inputs in separate file and read from that file. for eg content of file may be /root/sample/shadow .htpasswd /root/sample/shadow .htpasswd1 /root/sample/shadow .htpasswd2
3
1,478
thread by: poolboi | last post Feb 18 '08 by: poolboi
hey guys posted a request on how to convert CSV to excel earlier just wanna know the confusion here what exactly is a CSV file? is it supposed to be an excel CSV file? or is it just a normal file? cos what i have is just a FILE apllication where i have to use notepad to open and i then am able to see data with commas in it however when...
3
1,539
thread by: suicidal pencil | last post Feb 17 '08 by: suicidal pencil
Hello! I won't lie, I'm new to Perl. I'm trying to switch variables in perl from '1' to '0', and somtimes '2', but it's not working correctly here's how I think a switch should be preformed: if ($input eq "switch them"){ $variable == 1;
7
1,425
thread by: yoshimishu | last post Feb 17 '08 by: KevinADC
Hi, I have to generate a xml file from an web site with rss feed . When i click on button on a web page a perl script should show a link on new popup window clicking on which xml file should show up.
5
1,400
thread by: bunny02 | last post Feb 17 '08 by: numberwhun
Hi all, I m new to perl, and writing a script , in which i need to connect to the command prompt from my perl script and pass some commands like " mkdir testdir". Is there any module available in perl to do this (in python we have os module) . I googled for it but i didnt get any help. If any one has idea, please reply asap. It's...
3
1,642
thread by: bpejman | last post Feb 15 '08 by: bpejman
I have a Perl-driven website on a windows 2003 server. I have configured the IIS and have set the permissions on the Home Directory tab to Read, Write and my Execute Permissions are set to "Scripts and Executable." I have gotten the site to work but my problem is, when I run the below code from my web browser, I do not see a file called...
3
1,166
thread by: vinaytvijayan | last post Feb 15 '08 by: vinaytvijayan
I am just a beginner While studying the tutorial i could find that in order to split a sentence into its corresponding words use (Here iam giving only the relevant code) @array = /+/ig; Actually the sentence is $sentence= 'My favorite numbers are 1,3,5,57,1001'; Output when \n is used is:-- My ...
0
1,127
rajiv07
thread by: rajiv07 | last post Feb 15 '08 by: rajiv07
Hi to all this is the code i am using to do some task but it gives the following error.i am breaking my head why the error is coming please help me on this. The Error in log file. (2)No such file or directory: exec of '/var/www/cgi-bin/xone/query/store_login.pl' failed Premature end of script headers: store_login.pl The Script
8
1,768
thread by: JWest46088 | last post Feb 15 '08 by: KevinADC
I'm having problems with my error handling. It's kind of hard to explain so I'll just post my code and bold where the error handling is and then explain what is happening. Just to warn you, I am new to Perl so the code probably will be ugly! #! /usr/local/bin/perl BEGIN { open(STDERR, ">&STDOUT");
4
1,251
thread by: amolbehl | last post Feb 15 '08 by: Kelicula
Ok I have a small problem ... let me try to explain it. I am to put apply these styles and images to a page. The page uses a template called header.shtml. In the header.shtml I included a number of styles sheets as css files and images. Now I need to set the path. The path from root of the script which is loaded to browser is ...
1
1,718
thread by: Perl Beginner | last post Feb 14 '08 by: KevinADC
Hi All, I have a very extensive Perl script using Win32. This is an automation script which manipulates various windows using the mouse and keyboard (using Win32::GuiTest). The various windows that I am manipulating are part of a software program that was written in Java. However, my Perl script is layered on top of this program, so it does...
4
1,197
thread by: JWest46088 | last post Feb 14 '08 by: KevinADC
I am trying to write a form loop that displays a text box however many times the user wants. For example, if the user enters 4, 4 text boxes will show up. Here is the code I have now for the for loop: for($i = 1; $i <= $elements; $i++) { print "Enter number $i: <br>"; print "<input type="text">"; }
12
1,906
thread by: jt2 | last post Feb 14 '08 by: KevinADC
Hello Perl Gurus! I'm quite a perl neophyte so I'm looking for help understanding why print doesn't print correctly. This may be a totally stupid error.... He is my program. What it is doing is parsing a file of comma seperated values and trying to extract the address field every time the clock field transitions from a zero to a one. ...
1
1,676
thread by: bhavanirayala | last post Feb 14 '08 by: eWish
Hello, I am using XML::Parsar in my perl file. but when I run the perl file, getting the following erro even I have the parser.pm and Dynaloader.pm files in the lib path. The error is: Can't load '/usr/local/lib/perl5/site_perl/5.6.1/aix/auto/XML/Parser/Expat/Expat.so' for module XML::Parser::Expat: dlopen:...
8
1,511
thread by: senthilkumars | last post Feb 14 '08 by: senthilkumars
how to compare two file and update the second file with comparing to first file? plz help
2
1,762
thread by: mpatharkar | last post Feb 13 '08 by: KevinADC
I want do program to search a word in the Input file if it is not found then print it to output file. But the problem is When it search the word in first line of input file and if it is not there then it prints that word to the output file then goes to next line and again search for that word,if it is not there then again it prints it. I want...
2
1,243
thread by: nawinjee | last post Feb 13 '08 by: numberwhun
my program runs some system files but i am not able to run those files.it reports the following error when i try to execute them.....you must be root to execute..........so anyone help me how to enter root through perl program and run some system files.
1
1,014
thread by: kriz4321 | last post Feb 13 '08 by: KevinADC
Hi, I have application which has Solid SQL as database. Is there any Perl package which I can use to connect to this database. It could be great if you give few hints on how to Install the module on a Solaris Server. Thanks in Advance....
1
1,642
thread by: 3srt | last post Feb 13 '08 by: KevinADC
Hello, I created a simple 'server' script that will accept input from a cgi script. The server will handle multiple connections on the same port, also. In a nut shell, this 'server' script will take in variables, and fork off a process to sleep for a given amount of time, and then send the user an email (and perform other functions). Here...

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.