473,544 Members | 1,420 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.
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.
14
1,757
thread by: jonathan184 | last post Mar 20 '07 by: KevinADC
Hi The script seems to be working ok with a list files to read a dir from but i got a dir with thousands of files and it does not search through all files, when i do a print of the read dir it comes up with less than ahindred. Could some one please help me, not sure which part is wrong in the code. Need it read and search the whole dir ...
14
8,581
thread by: kardon33 | last post Jun 1 '07 by: kardon33
Hi i didnt know to post this into the C threads or Perl but what i need is to convert the comand: (typedef struct {}) in C to somthing that does the same thing in Perl.
14
2,694
thread by: deppeler | last post Aug 2 '07 by: KevinADC
my flat field DB fields are: I have them sorted by field (category=TeachersActivity or ChildrensBooks) so they are grouped together as Children's Books then Teacher Activities open(BASE, $dbk) || do {&no_open;}; my @sorted = <BASE>; close(BASE); foreach my $line (sort cat @sorted) {
14
1,789
thread by: Megi | last post Dec 6 '07 by: eWish
Helo, I found at forum somebodys post: I'm trying to parse an input file and then take data from that file and enter it into a MySQL database. I'm separating the fields with tabs '\t' and ending the records with a newline '\n'. I'm using the LOAD DATA function (see the code snippet below). # Load the data into the history table my...
14
1,539
thread by: über | last post Oct 13 '08 by: KevinADC
for ($i = 0; $s < @FILENAME; $s++) { if (substr($FILENAME, length($FILENAME) - 4) eq ".cgi" || substr($FILENAME, length($FILENAME) - 3) eq ".pl") { $PERLFILE = $FILENAME; $ss++; } } I would say that this scirpt idenflies some file that is it perl script...
14
4,106
thread by: natarajmtech | last post Oct 21 '08 by: natarajmtech
Hi all, I have to do a translation of a word into different possible word based on a dictionary, which define differ meaning for each letter in a word. For example, The word "VAEFGH" to be translated to various all possible words based on the dictonary that I define here like the one. @V=('GTT','GTC','GTA','GTG');...
14
14,667
thread by: happyse27 | last post Dec 9 '08 by: happyse27
Hi all, I did the null string comparison for below... But could not work as i keyed some value into the $company field but it did not print out okok, but not ok. I used if ($company != '') also did not help... Can you kindly advise? Cheers...
14
2,024
blackgoat
thread by: blackgoat | last post Feb 8 '10 by: blackgoat
I am totally new to unix and perl. Although I have gone thtough some basics of both, I am still not quite comfortable with using them. I have received the following assignment. Can anyone pls help: I shall be great full for any help on this. thanx
14
2,557
thread by: Sidra Nisar | last post Mar 21 '10 by: Sidra Nisar
hello... i have recently started learning perl.....and having issues when i try to read input from another file. the details of a script that i tried to run are as follows: i made a text file by the name “text.txt” and the contents were Sidra|38|BE Hira|48|BE Shagufta|50|BE Then i wrote the following script
14
16,713
thread by: lashaw | last post Apr 1 '10 by: RonB
This program display a names. If the name you type match the one asked to type, the program tells you the phone number of the name. The problem is it only list the last name in the file. How to get the program to start at the first name in the file, and after you type it correct, show name number and move to the next name? All help would be...
14
4,229
thread by: Dipak Singh | last post Feb 26 '11 by: rovf
Hi, I am a beginner at perl. I am writing a program to open a file, take input from user for the words he wants to search within that file, print it then print the no of occurance of each word with respective line no.s in the file. Below is the code written by me: #printing the file open (MYFILE, 'C:\Documents and Settings\dsingh20\My...
13
6,404
thread by: NNTP | last post Jul 19 '05 by: Alan Connor
I have a script that outputs the following. 200 23.131.155.5; 1 23.131.161.4; 2 102.131.161.54; 2 23.160.180.4; 35 54.1.8.7; 356 15.18.235.52; 1 205.18.235.88; 1 205.18.246.21;
13
10,148
thread by: somyasagar | last post Nov 6 '06 by: miller
Hi, Please tell how to write :A script which reads a file and search for some words like ABC or FGH in the file text and put some variable after their occurance.That variable is configurable HEX parameter which can be configured through config file or can be given as a command line parameter. Thanks
13
3,550
thread by: Studentmadhura05 | last post Nov 16 '06 by: Studentmadhura05
Hi, I recently started using bash and wrote some code to find certain IPs and related stuff in the leases files by using grep I am trying to switch to perl. I am a bigginer and trying to learn perl by reading stuff on net. I am getting stuck at following point I wrote in bash grep $IP data061009 -A 6 Now in perl I am writing @result= grep...
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...
13
3,377
thread by: sunilmuki | last post Mar 15 '07 by: KevinADC
hi, plz tel me how two compare a two files in perl, Ignore whitespace only compare the written satements.....
13
1,291
thread by: allan6874 | last post Jul 5 '07 by: KevinADC
Hello, Can someone please provide me with the code that will allow me to send the results of formmail fields to web page as oppose to sending the results to an e-mail address. Can this be done? Thanks Allan Jones
13
1,481
thread by: samthemist | last post Jul 11 '07 by: samthemist
For example: POST, GET www.thescripts.com etc What's the fastest way of doing this? As the program i'm making relys on speed, so the fastest way would help alot. I have tried an equivalent in VB6 (don't ask why), and it's doing around 500ms on a 8mbps connection. Is there one that can go at that speed or faster?
13
1,599
thread by: gemstone | last post Jul 21 '07 by: gemstone
hi guys, I have to accept the username and password entered on the web page(designed using html) store them in 2 variables (say, $var1 and $var2) and compare it with a text file(unpw.txt) which already has the list of username and its password (which will be split and stored as $uname and $pswd). i was told to use html in perl scripts. im...
13
1,360
numberwhun
thread by: numberwhun | last post Jul 26 '07 by: KevinADC
Hello everyone! I have a data file that contains miscellaneous information on each line. (Unfortunately, I cannot go into detail of the file layout as it is sensitive information), but I can say that on each line are dates in multiple positions. Some areas of a line contain multiple dates, strung together because there is no separation...
13
7,604
thread by: tovenkatesh82 | last post Aug 1 '07 by: numberwhun
Hi All, I want to copy some files from one dir in d:, to another dir in c:, i tried using xcopy but it says too many parameters!!pls give suggestions another thing i wanted to know is how can i invoke command prompt from perl??
13
1,741
thread by: deppeler | last post Aug 22 '07 by: deppeler
I have a script that allows the user to upload images to the server & writes the file name to a flat file DB. I have another script that allows the user to delete the image entry from the DB. Is there a way to also delete the image from the server folder as well? Here is the script I am using to delete the entry in the DB: if...
13
12,992
thread by: manoprasanna | last post Sep 2 '07 by: numberwhun
hi all.. i have just now started working in perl... i have a requirment where in i need to compare two text files.. and need to print the contents that are not present in file 2 during comparison into a third file.. i am able to compare files but dont know how to move the missing contents into new file.. can anyone kindly help me in...
13
2,183
thread by: Rituparna | last post Sep 5 '07 by: KevinADC
Can anyone help me ..how to find out users with Null password in windows...using perl function..

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.