2,452 Topics
![]() | |
I have a perl assignment I have a question about. I have to take a text file (gettysburgh.txt) and I have to alter it. I think my code is correct but when I run the program it says no such file exists. The file is saved on my computer so … | |
Hello! Does somebody know how to print the following fields from these lines chr1 166851489 166851564 chr1 166851665 166851740 so that Perl prints only: chr1 166851489 166851740 All fields are tab-separated. Thank you. /Rob | |
Could anyone help me splitting a big file into subfiles. The file is something similar to this: 1.SYSTEM = UNIX 2.variable = value 3.>ACTIVATED 1 4.ALL: FILE1 5.ALL:FILE2 6.ALL:FILE3 7.ALL:FILE4 8.>ACTIVATED 1 9. ################* 10.>>CONDITIONS 11.################ 12.MODEL: 13.<one ExeSimpleName> : <one or more Flags> : [Options] I need to split … | |
Hi, This is my first question in the forum and I was wondering if anyone knew the answer. For the past 8 years or so, I have been using OLE to transfer information between perl and excel and word. I actually wrote a word version today for the first time … | |
I changed the name of a folder so that it would meet the requirements for my assignment submission and now my program wont run in the command window. its saying it can't find the .txt files. However, the program runs without any problems in JCreator. i have a folder called … | |
I want to create a list of hyperlink buttons, and the bulleted list should contain some images before the link. For example > how > can > i > get > this So in place of ">" i need different images, how can i do that in Silverlight? Thanks in … | |
Hi, I have two shell scripts that do the same thing, but are written differently. The first one works: [code] size=0 pattern=foo for file in * do [ ! -f $file ] && continue if grep $pattern $file > /dev/null then tsize=`cat $file |wc -c` size=`expr $size + $tsize` echo … | |
as part of my assignment i'm trying to validate an email address stored in an hash, with the key: 'email' and the value as the data supplied. But the email is not getting validated using reg-ex: [CODE] if($form_element{'email'} =~ m/^[A-z0-9_\-]+[@][A-z0-9_\-]+([.][A-z0-9_\-]+)+[A-z]{2,4}$/i){ $values = 0; $mail = "InValid!"; } else { $mail … | |
Hi ! This sctipt work with \insert{aaa.tex} but dont work with \insert aaa.tex What I must do ?! [ICODE]while(/^\\insert\{(.*?)(\.tex)?\}/){ $pries=$`."\n"; $nekeisk=$&; $vardas=$1; $po=$'; $failiukas=$1.".tex"; if(-e "$dir/$failiukas"){ open (IN2,"<$failiukas") || die "negaliu atidaryti $failiukas failo.\n"; $vidus=<IN2>; close IN2; $visas=$visas.$pries.$vidus."\n"; $_=$po; print "Idetas failas $failiukas\n"; } else{ $visas=$visas.$pries.$failiukas."\n"; $_=$po; print "$failiukas failas … | |
Hi, I am new in this forum and perl as well. I have a question. I have a form with 3 fields name, phone number and email address. now if any user put the wrong data in any one or more field, I just want to display a message where … | |
Hello, Im trying to make jLabel component start default system browser and go to the specified page. I've tried to do this by adding listener to the jLabel and this part works fine, i have the problem with starting up the browser. I have only found system specific ways to … | |
hi, I got this program from one of forums: [url]http://www.perlguru.com/gforum.cgi?post=32920[/url] its something like this: ------------------------------------------------------------------------- open(IN, "/path/outModified.pl") or die "$!"; while (my $line = <IN>) { chomp($line); my @array = (split (/\s+/, $line))[6, 7, 8]; # print "@array\n"; push @points, [ @array ]; } close(IN); print '@points : ', Dumper … | |
hi, i'd like to know how to get the number of regexp matches a pattern returns ex: if I have $_ = "fooFOObarBAR";$_ =~ /[a-z]/ it would return 6 thx SNIP | |
Hello, I am working on something where i need to search and replace many variable names of a program. For example, I have a class Hello and its public variable is world, but the variable world has been changed to earth so now in the program i need to go … | |
I need to have a script where the date will be entered using numbers and forward slashes. The month and day numbers can be entered using one or two digits, and the year number can be entered using either two or four digits. The date should be displayed, for example, … | |
im working with some perl code, and im really unfamiliar with the language, and I have a situation. I'm working with a package of perl scripts for a game, there are about 4000 of them and counting. They are release constantly, and altering their contents isnt really an option, it … | |
i want to create a perl /CGI program Cookie, where the username can be remembered even if the browser is shut down and restarted. i am new to Perl programming, and i have no clue from where to start on this, but i am aware on how to set cookies, … | |
i m using perl script to do something where i want to change my current directory to mnt in c: only.. bt using function system("cd c:\mnt"); is nt working. system("dir"); is working properly ,also some other command using systems function in perl script is working fine bt dnt know what … | |
hi ive got this assignment to do, ive got to write a perl program that analyses a text file to obtain statistics. Need some help with this particular section when run the program should check if an argument has been provided if not the program should prompt for and accept … | |
how do I retreive query string in perl ? let's say I have [url]http://server.com?name=foo[/url] how do I get the value of 'name' thx [email]cvv3@yahoo.com[/email] | |
Hello all, Greetings! Question: How does one run a perl program without it being a cgi program? Can I write a script in perl as a stand alone program and run it without uploading to the http server? if so How? I have saved my files with a .pl file … | |
Hi, i'd like to know how to get hex code of an ASCII char. Ex: 'a' => 61 | |
Hi to All, I am I guess for lack of a better word, A Newbie when it comes to Perl. I was given a project to accomplish the following; 1. write a perl executable script that will execute a SQL query. 2. then I need to take the data retrieved … | |
I am using XP service pack 3 and have installed WMP 11. I try to start the program and get the message " Windows Media Player is not installed properly and must be reinstalled. Do you wan:'( t to install the player from the Microsoft Web site?" Accepting 'yes' to … | |
I'm writing this little page that lets you sort of have a conversation with a perl script, and i'm having a problem. At the top of my php I access the perl script, with some text that the user input via a textbox. The perl responds with.. we'll say "Havin' … | |
I've installed a few software quite some time ago and the icons aren't working correctly. I tried solving it with Tuneup and CCleaner but it can't solve it either. First, when I open the file, they did not get the file type and ask me what program I want to … | |
Hi, My CSV files contains embedded double quotes, as it does not conform to the RFC 4180 standard and results in parser complication. I tried using Perl Module "Text::CSV_XS" to properly escape with double-quotes, the output file gives me the result as desired, however some of the line breaks into … | |
We have a script that creates a .csv file that in turn is fed into a python script. Our .csv file is being generated with a line feed at the bottom, and this is hammering the python script. Is there a way to get rid of that extra line that … | |
good day, I am in need of a hand ...i am building a Wire transfer software for remmitance into bank accounts but i am having some errors..i would like you to contact me in any case if you can be of assistance. my email is [email removed] Please do get … | |
I downloaded active perl and go to the perl package manager but I cant figure out how to get my applications to run. Any suggestions? | |
Im taking a perl class not exactly sure if what Im doing is right. I was to take a written program that allowed the user to enter a number guessing what the target was. The original used elseif statements to let the user know if the guess was to high, … | |
I'm a noob and am struggling with what should be some fairly straightforward php and mysql coding. I have a page that I am building and am able to get the following code to work: [code=php]<?php include 'includes/config.php'; include 'includes/opendb.php'; ?> <div align="center"><h1> <?php $id=$_GET['player_id']; ?> <? $query= "SELECT p.player_id … | |
I have a file structure like this: \\Serversharedfolder\Folder1\Folder2\Workbook.xls \\Serversharedfolder\Folder1\Folder2\Folder3\ I am trying to create a hyperlink for the pdfs inside Folder 3 from Workbook.xls. How do I specify relative path to achieve this?.When I Copy Folder 1 to a DVD I want the hyperlinks to work. Any help is appreciated. … | |
Is there any way that I can get PERL to give me the elapsed time that it took to calculate something? I'm trying to make my algorithm for finding prime numbers more efficient, and obviously I can't tell the differences in the time it took to generate the list, so … | |
hi, i need to output the number of sentences in a file. The file looks like this: For the eyeing of my scars, there is a charge, For the hearing of my heart, It really goes. And there is a charge a very large charge, For a word or a … | |
I have a Perl program I am editing. The idea is to have it write a record to another file whenever a user access this program. Here is the Perl code I am using: open(MYFILE, ">>/usage.file"); print MYFILE "USERID: `whoami` used this on DATE: `date` \n"; close MYFILE; the problem … | |
Hello, Please i need some assistance running a perl script, i obtained a Google API key, installed a a perl editor to run the program, The server for the program went down,so this is the only way to access the application, however i experience errors when debugging the program on … | |
Hi Experts! I am trying to build dynamic hyperlinks but i cant do this. i am new to JSP. please guide me. here is my code: [code=JSP]<% try{ Class.forName("com.mysql.jdbc.Driver").newInstance(); connection = DriverManager.getConnection(connectionURL, "root", "root"); statement = connection.createStatement(); rs = statement.executeQuery("SELECT * FROM contacts"); while (rs.next()) { %> <a href="viewdata.jsp?value1="+<%rs.getString(1)%>+">"+<%out.println(rs.getString(1));%></a> <%} … | |
I got the same virus on one of the workstations. I did the antivirus thing got rid of what I thought was all but now the only problem is right after you log in (I tried safe mode too) it logs you off. tried doing a windows repair but no … | |
![]() | <code> Hi Guys, I am new in perl. I have this file:- 2009-01-08 09:29:19 ABCD MS08-001 Works Suite 2005 (KB943973) 2009-01-08 09:29:19 ABCD MS08-001 Works Suite 2005 (KB943973) 2009-01-08 09:29:19 BCDE MS08-001 Works Suite 2005 (KB943973) 2009-01-09 09:29:19 FFFF MS08-001 Works Suite 2005 (KB943973) 2009-01-08 09:29:19 ABCD MS08-002 Works Suite … ![]() |
I will be starting working on perl and java soon.. Can anyone please help, form where to start so that i get the confidence of working on it and i can do hands on. | |
hi ive got this segment of code that im struggling with the code does what i want it to do in the sense that if i put in the filename of the file that i have created it works but for a random user the code will not produce the … | |
I'm writing a class planner, where the user is given the opportunity to enter certain information about their classes and have it printed back to them upon request. The problem I'm having is that whenever I enter any text into the input with a space in it, it returns me … | |
I'm new to PERL but I'm picking up quick. I've been able to search a file for a certain string but now I need something slightly different and I'm completely lost. I need to search a text file for a string and return the text after it. I have a … | |
Hi, I came home yesterday to my computer doing weird things, including opening up windows explorer and lots of tabs on Mozilla. I realized it was a virus and did a virus check. I run Windows XP SP2. I went to safe mode. I use AVG for anti-virus, it found … | |
when i try to subtract 25 from 1000 i get 1000. have tried 900-25 and get 900. is this a known bug? | |
Hi, does anyone know where to find perl module Parse::RecDescent [email]cvv3@yahoo.com[/email] thx | |
calling C/C++ function from perl from : [email]cvv3@yahoo.com[/email] Hi, how do I call a compiled C/C++ function from perl ? Let say I have a C/C++ function: [code] *char func(char *ptr, int len) { ... return str;} [/code] Now i wonna call it from perl | |
I wrote a perl script to decode a file and it keeps giving me a weird out put. I have zipped my script and the encoded file. Can any one make any since or tell me what I am doing wrong? | |
i used this code to generate image from flash .. <?php error_reporting(1); /** * Get the width and height of the destination image * from the POST variables and convert them into * integer values */ $w = (int)$_POST['width']; $h = (int)$_POST['height']; // create the image with desired width and … |
The End.