473,573 Members | 3,376 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.
9
3,376
thread by: susinthaa | last post Oct 12 '07 by: numberwhun
Hi, How to copy a file from solaris to windows? Thanks, susi
9
4,428
thread by: Shalako | last post Jul 13 '07 by: Shalako
I have several web pages that are perl files with .pl extensions. Inside these I have HTML code for the web page display. I am trying to have a certain page refresh every five minutes. I was told to use <META HTTP-EQUIV="Refresh" CONTENT="300"> and place it inside the HEAD tags. Well this doesn't work because when I click on the link to go to...
9
2,765
thread by: rekabuk | last post Aug 8 '07 by: KevinADC
Hi folks, I'm having problems running a perl script that uses LWP. I'm trying to run webcal_cmd.pl which is part of WebCalendar by http://www.ma.utexas.edu/webcalendar/ When I run the script I get the reply "connection refused". Why? Who refused it?
9
33,463
thread by: whirly | last post Jul 25 '08 by: Phatfingers
I have a hex value FFFFFFCE that actually represents -50. When I simply use hex function to convert the above value to an integer, I get 4294967246. That means that integer overflow took place. How do I handle such cases, so that conversion will be correct?
9
3,631
thread by: teixeira | last post Aug 21 '07 by: numberwhun
Hi, How can i make a script to copy a bunch of files in a specific directory, that were created in a specifc date range? Thanks in advance, Teixeira
9
19,979
rajiv07
thread by: rajiv07 | last post Aug 27 '07 by: numberwhun
Hi to all, I want execute a perl program inside another perl program with passing some values to called program by calling program. Is any Idea please. Thanks in advance.
9
1,497
thread by: sdja | last post Sep 3 '07 by: miller
hi... i am beginner in perl cgi programming..i am atempting to read from a file.... my cgi script is #!c:\perl\bin\perl -wT #print "content-type: text/html \n\n"; use CGI qw(:standard); use strict; print header;
9
3,749
shrek123
thread by: shrek123 | last post Sep 5 '07 by: Kelicula
How to write to a ".txt" file present on remote machine. I dont want to use two way socket connection. Is there any other way to write to a file on remote machine? Best Regards, Shrek.
9
1,596
thread by: Archanak | last post Sep 13 '07 by: KevinADC
Hi all, I have a query like this:- ((A AND B) NOT (C AND D) AND (N OR M) NOT (E AND F)) I want to store ((A AND B) AND (N OR M)) in one array. (C AND D) NOT (E AND F) in other array.
9
4,839
thread by: humaid | last post Sep 14 '07 by: numberwhun
hi guys,i have this problem.first let me show you the so far code #!/user/bin/perl while ($a = <STDIN>) { if ($a =~ tr/A-Z/a-z/) { print "$a\n"; }
9
1,997
thread by: jaxx | last post Sep 19 '07 by: KevinADC
Hey all. I am pretty new to this. But I was hopeing i can get some help from here. Have searched the but haven't found the right thing for me. I would need a program that will read a file, with a lot of lines, then get some lines starting from <!------ TÄNA KANAL 2-S ----------> then these lines will be printed out and when comes this line:...
9
2,933
thread by: LuckyLeprechaun | last post Sep 20 '07 by: LuckyLeprechaun
OS using: Linux(core 1), Solaris (5.6 to 5.8), Unix Perl version: v5.8.5 I need to find the path or alias that the user used to execute the program with (aka $0), just like the built-in shell commands which or where, but using Perl. Now if I just want the path I have found many ways to do that using things like: use Cwd qw(realpath);...
9
2,972
thread by: aurekha | last post Sep 24 '07 by: aurekha
My problem is, previously, i had installed perl-5.8.7 in my Linux. But when i do upgrade i.e when i install perl-5.8.8 in my machine, it doesn't get installed completely. So , i am getting error while doing programs. It takes the path as /usr/local/lib/perl5/5.8.8 but i want to run my scripts in the path as /usr/lib/perl/5.8.7. Any reply...
9
1,817
thread by: jaynemarie | last post Sep 25 '07 by: KevinADC
I have a simple program that attempts to convert lines to a csv file. The way I see it it shoule output like this: Applebee's Neighborhood Grill & Bar*, 11500 Shawnee Mission Pkwy.,Shawnee, KS, 66203, 913-962-1133 as one line. But it is not and I don't see why. I am putting each line into an array and then at the end doing a join. Why am I...
9
3,280
thread by: idorjee | last post Oct 6 '07 by: idorjee
Hi guys, I have a small problem with my Perl-CGI script, and I would appreciate if anyone can help me out with this. I'm trying to get this done in two stages. 1st to get a bunch of info from the web and display it (which is working fine), but the 2nd part is, I want to add some of these info into my MySQL table after viewing them (I don't know...
9
2,402
thread by: bhumikas | last post Oct 13 '07 by: anjigorantla
Hi all, I need a help in perl script.The basic idea is,it must have command line arguments for the user flexibility.the files are in the format as shown below. MainFolder Directory Sub_directory files Sub_directory files Directory
9
2,178
thread by: idorjee | last post Oct 13 '07 by: idorjee
hi all, i've been trying, almost for the whole day, to submit the value of a variable in my perl script (eg, $sequence) to a subroutine in the same script when i click on a submit button. how can i do that? is there any other way execute a second perl script with a click of a button on the first one, submitting the same values of variables in...
9
1,144
thread by: bhumikas | last post Oct 16 '07 by: bhumikas
I need a help with my code... What I want to do is: if there exists a directory_no, and found in the directories array , want to copy the contents of that array to a new array from where the directory_no is found to till the end of that array. In the end copy the new_directory array to the directories array; Ex:directories array: 1 2 3 4 5 ...
9
3,238
thread by: lokeshrajoria | last post Oct 19 '07 by: numberwhun
hello everybody, i need some help in binary file handling in perl. can anybody give me some information about binary file. actully i am reading data from some text file and extracting some usefull information from there and want store in my own binary file with .vbf extension ( not like .dat file.) i am putting code here for reading text file and...
9
5,263
thread by: débutante | last post Oct 25 '07 by: eWish
bonjour tout le monde je veux installer perl soous cygwin. pour y procéder voici nles étapes ke g fait: 1) g téléchargé activeperl et je l'ai installé => résultat: c/perl le perl toune correctement 2) g installé le cygwin 3) g essayé la comande suivante $ brw_tools unpack bash: ./brw_tools: /usr/local/bin/perl: bad interpreter: No such...
9
2,454
thread by: baluundertaker | last post Oct 28 '07 by: numberwhun
I am using a Aix 5.3 system and have written a perl script which uses Config::Properties to read/write into configuration files . The perl version is 5.6.0. When i run : perl filename.pl i get the following error : /^(?:\x{FEFF}|{FFFE})/: Can't use \x{} without 'use utf8' declaration at Config/Properties.pm line 215. Compilation failed in...
9
1,979
thread by: dtex23 | last post Nov 6 '07 by: dtex23
Good afternoon all, Question about list assignment in perl... Given a piece of code that looks kinda like this for parsing some '|' delimited input text lines : ($var1, $var2, $var3) = split(/\|/, $listline); Here's the hard part: There are differing programs that read from the same conf file that take data stream and split it, but at...
9
5,189
thread by: jamietsh | last post Nov 11 '07 by: KevinADC
hi, i would like to store my hash table in an external file and call it in my perl script. how should i store my external hash table and what is the syntax to read it? thanks alot.
9
1,712
thread by: jcor | last post Nov 12 '07 by: jcor
HI, I need every day to upload several files to a website (go to site, click "browse", wait for the upload and its done). I'd like to automate this with a perl script, but I can't figure how. MY idea is to be monitoring a folder and upload every files that is copy to there. Can someone give me some lights to start a scratch of the script, the...
9
2,134
thread by: richee | last post Nov 29 '07 by: richee
Hi all, I am new to Perl but see that it offers some fantastic opportunities and am trying to use it more in problem solving but could do with a little help on a problem thats driving me nuts.... I am trying to remove certain sub headers from email, i want it to tick through the text until it reaches "content-disposition:" then delete the...

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.