473,543 Members | 2,061 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,452
thread by: vadlapatlahari | last post Mar 28 '08 by: KevinADC
Hi, Can any one please suggest me how to find the version of Expat i am on? Thanks in advance.
6
2,144
thread by: Rainbow66 | last post Mar 28 '08 by: KevinADC
must be algorithm as OPTIMAL,FIFO and LRU and have average sum of page faults pr. algorithm. sum of simulations i want it to do is ex 5000 and can choose the size of the memory.That means the sum of adresses which the refferance string could generate ex. The sum of frames the process shall have access to And how long the refferance string...
4
1,418
thread by: jospiera | last post Mar 28 '08 by: KevinADC
I'm trying use perl code in a html page, I wrote it in goddyear.html <html> <%@ language="PerlScript" %> <% print "Hello, good year" ; %>
2
1,183
thread by: Cecil1984 | last post Mar 28 '08 by: Cecil1984
hi everyone could everyone tell me how can i invoke value from getopt('u') to getopt('a')? for example getopt('u); if (opt_u) { print"enter something:\n";
4
3,749
rajiv07
thread by: rajiv07 | last post Mar 28 '08 by: avarix
I have some problem in session loading use CGI; use CGI::Session; use CGI::Cookie; my $session = "" ; my $sid = "" ;
2
1,126
thread by: shyamsunderc | last post Mar 28 '08 by: shyamsunderc
Hi , I am new to "perl" ,i want some basic information how to transfer the files from one synstem to other system.Using ftp. I wanted you to ask that i need to run the FTP server in both the systems. Please reply to this i need it urgently... Thank you Shyam
1
7,415
thread by: sayabaobao | last post Mar 28 '08 by: nithinpes
Hello all, I am using perl net::telnet to login remote switches by $t->open($device); $t->login($username, $password); and everything goes on very well. The problem is that now I have to telnet another switch that doesn't have a username prompt...which means only $password is needed when login... but so far as i know that both username...
5
1,359
thread by: sameeradamle | last post Mar 28 '08 by: eWish
I need to write a perl script to replace text in a series of files. What i need to do: 1) in Command line i need to specify the <text to be replaced> , <replacing text>, <name of the files in which i need replacement> 2) Also i need to specify an option '-c' to prompt the user to confirm while replacing in each file. That is the command line...
10
2,519
thread by: islayer | last post Mar 28 '08 by: eWish
i am trying to write a dictionary using perl, the program would use a primary .pl file, and a text file, designated .dat i have no programing background, and am trying to teach myself perl, and c++, so excuse my ignorance. i have experimented with some scripts, i have figured out why my last one didn't work, but i have no idea what to do....
1
1,967
thread by: Keith Lee | last post Mar 28 '08 by: Jim Gibson
All: Is this module downloadable in executable form; or, is it only available for download in source code? I need it for Linux. Thank you. Keith Lee
2
1,331
thread by: dvijayan | last post Mar 27 '08 by: numberwhun
I have my own created "Games.pm" file.I want to use this module inside any perl script without placing it inside the Perl/lib path. currently i am getting the error "Can't locate Games.pm in @INC (@INC contains: C:/Perl/site/lib C:/Perl/lib .)": Please reply
4
1,372
thread by: pinpe | last post Mar 27 '08 by: dvijayan
Hi, I want to search a pattern from each line of my print output with a word "DOG". And those lines without the word "DOG" I will replace the entire line with the word "Not Found". How can I do it? Pls advice. Tnx in advance. Input: My DOG name *** CAT is in the kitchen Name DOG *** CAT is in the kitchen
8
1,338
thread by: jain236 | last post Mar 27 '08 by: jain236
Hi can some one help with my problem i have a script which search for the files in the directory and download it to our directroy and it has sleep to repeat the process againg after 1 hour.it compares the file in source directory , if it is not there then down load it our directory all the comparision i am doing by grep /^$newFiles/,...
6
4,450
crazy4perl
thread by: crazy4perl | last post Mar 26 '08 by: crazy4perl2
Hi all, Here is my query, I hav some RAP files (related to telecomm espcially Roamming) which when I m opening with any text editor showing some junk data. Is it possible to convert or read that file using script. if yes then how. pls let me know.
11
1,479
thread by: Dr Fuzzy | last post Mar 26 '08 by: Dr Fuzzy
Hi all, I am working on a VHDL code beautifier with Perl. I've come to this part of the beautification process and I got really stuck. Assume for example the following piece of VHDl code: CODE entity JK_FF is port( clock : in std_logic; J, K : in std_logic; reset : in std_logic;
4
1,052
thread by: loisk | last post Mar 26 '08 by: loisk
Hi, I am getting an DBI error (DBD::mysql) from the following code. Can anybody help and tell me if anything wrong in it? Thanks! foreach my $f (@{$field_ref}) { next if $f->{value} eq ""; $stmt .= "," if $stmt; $stmt .= $f->{name} . " = " . $dbh->quote ($f->{value});
3
1,707
thread by: MyMarlboro | last post Mar 26 '08 by: KevinADC
print Dumper(@data); _____________ $VAR1= '2008,Car,Medium1,5000'; $VAR2= '2008,Car,Medium2,5000'; $VAR3= '2007,Plane1,Medium1,20000'; $VAR4= '2006,Boat,Small1,20000'; $VAR5= '2006,Plane2,Small1,20000'; $VAR6= '2006,Plane1,Small1,20000'; ....
3
2,515
thread by: Perl Beginner | last post Mar 26 '08 by: KevinADC
A few days ago, i was trying to make my perl script an executable (with no success). but that's not the direction of my question (at least not right now). Once i stopped trying to make the executable work, i ran my perl script as a perl script (*.pl), but now when the console window comes up when it runs, i noticed that it's running through...
1
1,249
thread by: madhurathod | last post Mar 26 '08 by: nithinpes
Please help me guys this is the error am getting while executing my script.... Anybody please help me to solve this Can't locate Modem/Vgetty.pm in @INC (@INC contains: D:/Perl/lib D:/Perl/site/li b .) at vgetty_pro_suit.pl line 293. BEGIN failed--compilation aborted at vgetty_pro_suit.pl line 293.
2
1,438
thread by: drjay | last post Mar 26 '08 by: eWish
I'm trying to get my script to parse a bunch of files and grab data between the <title></> and <blah></> tags. Yes yes, I'm parsing html with regex, it works though. :) The issue I have is sometimes there is one line, sometimes 30 lines, between <title> and <blah> so I can't just .+ it all the way. Plus there are multiple <blah> tags in each...
4
2,109
thread by: finelady | last post Mar 26 '08 by: eWish
Hello, I am new on perl and want to do one script who will ask for the name of the log file to analyse and will give the statictics : 1- the covered period of the log (start-end) by date and hours; 2- the total number of lines (traces) foreach adress; 3-the total numbers of traces for each service; 4-the total number of connections pop, ssh...
12
1,286
thread by: rohitbasu77 | last post Mar 25 '08 by: rohitbasu77
Hi Friends, I need a little help…. I have a file that looks like this: cat cat cat dog dog cat dog cat cat dog dog put put low put put cat dog dog cat cat put The output of the file will look some thing like this:
4
2,289
thread by: MyMarlboro | last post Mar 25 '08 by: nithinpes
Is it posible to append to txt file vertically??? Example original file... (constants: A, B , C, Car, Boat) BLANK, Car, BLANK, Boat, BLANK BLANK, Nov07, Dec07, Nov07, Dec07 A, 1, 2, 2, 7, B, 1, 2, 2, 7, C, 1, 2, 2, 7, when come to january, i wish to add the Jan 08 data (for noth car and boat respectively into the previous data), it should...
5
2,292
thread by: tabani | last post Mar 24 '08 by: KevinADC
I wrote the program and its not giving me correct answer can any one help me with that please and specify my mistake please it will be highly appreciable... The error arrives from option 'a' it asks for user name, check in the system but does not return the correct answer please help me with it. or if you have better way of doing it would you...
5
1,359
thread by: rohitbasu77 | last post Mar 24 '08 by: rohitbasu77
Dear friends, how to make a perl script that will login to different remort servers and run a script from the local machine, in a defenite directory in the server that will update the server. thanks in advance rohit

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.