Search Discussions

278 discussions - 1,608 posts

  • If I was using one specific group of commands, Could I put them inside a variable, then just use the variable when I needed the commands instead of copying and pasting them? i.e. print "Hello world"; ...
    Feb 19, 2004 at 1:20 pm
    Feb 20, 2004 at 9:59 pm
  • yes, of course. Perl does need more games (I know I cant get enough Spades in Yahoo land. ;) in that venue - download a Games module off CPAN and port it to other card types - Spades poker et al... ...
    WC -Sx- JonesWC -Sx- Jones
    Feb 24, 2004 at 10:22 pm
    Mar 8, 2004 at 5:39 pm
  • I'm having a heck of a time getting eval() to obey me this morning and I thought I would see if I can get a fresh perspective from someone. Okay, I'm passing a server I wrote some Perl code I want it ...
    James Edward Gray IIJames Edward Gray II
    Feb 23, 2004 at 4:35 pm
    Feb 24, 2004 at 5:23 pm
  • Hi all, I want to store alignment results( that is why I asked about struct yesterday). I thougt that I could just push seq1 seq2 and the score to an array and can acess them by using $k*3 + $n ($n=0 ...
    Öznur TaştanÖznur Taştan
    Feb 23, 2004 at 10:08 am
    Feb 25, 2004 at 11:44 am
  • I'm trying to write a subroutine that takes two scalars and two arrays as parameters. I've read that if you try to do this in a function, both arrays will get combined within '@_'. Instead, I want ...
    Andrew GaffneyAndrew Gaffney
    Feb 28, 2004 at 6:41 am
    Mar 9, 2004 at 4:56 am
  • I've been using Perl for about a year. I'm writing my own module that contains some custom functions that I use a lot. In doing this, I started wondering how modules work. For example, if my module ...
    Andrew GaffneyAndrew Gaffney
    Feb 18, 2004 at 12:21 am
    Feb 21, 2004 at 9:11 pm
  • Can perl connect to a mail server via imap and then send some emails (with attachements of course)
    Feb 17, 2004 at 9:44 am
    Feb 18, 2004 at 8:09 am
  • I'm having trouble counting the number of specific substrings within a string. I'm working on a bioinformatics coursework at the moment, so my string looks like this: $sequence = ...
    Henry ToddHenry Todd
    Feb 25, 2004 at 4:42 pm
    Feb 26, 2004 at 6:35 pm
  • Hi List. Is there a way to determine the number of lines in a file without actually iterating through the file and incrementing a file? I found the following on perlmonks.org, it works great but this ...
    Jason NormandinJason Normandin
    Feb 25, 2004 at 11:57 pm
    Feb 29, 2004 at 11:22 am
  • I'm getting tired of working on a text adventure in perl, and I was wondering if anyone had some interesting projects they could suggest I attempt. Thanks, Joel
    Feb 24, 2004 at 8:06 pm
    Feb 28, 2004 at 10:46 am
  • Greetings, I am trying to figure out why the following doesn't work the way I would expect it to: $var1 = 1.5; $var2 = sprintf(".0f", $var1); $var2 ends up being rounded down to 1 instead of being ...
    Zielfelder, RobertZielfelder, Robert
    Feb 24, 2004 at 3:04 pm
    Feb 25, 2004 at 10:59 am
  • I am still dealing with the same problem. Rob has suggested me a good solution for macthing consecutive patterns like H K D but not more looser ones like for K[ED]{3,5}? L.{3}A andn my poor perl ...
    Öznur TaştanÖznur Taştan
    Feb 20, 2004 at 8:55 am
    Feb 20, 2004 at 5:24 pm
  • Is there a CPAN module to pull netstat summary information from a system? Rather than run 'netstat -s', I was hoping to find some way within perl. What I basically want to do is generate a couple of ...
    Feb 26, 2004 at 10:23 pm
    Feb 29, 2004 at 3:23 am
  • Hi all, a while ago, I wrote a little subroutine to test wether a given element is in a given array: sub contains { my $result = 0; my $contained = shift; foreach (@_) { if ($_ eq $contained){ ...
    Jan EdenJan Eden
    Feb 10, 2004 at 11:05 am
    Feb 11, 2004 at 3:10 pm
  • Hello, all. I'm as green a Perl programmer as can be. As a matter of fact, I am green in OO programming and network communications. I spent 12 years maintaining FORTRAN code on 1970's mainframe ...
    Peterson, Darren - Contractor.WestarPeterson, Darren - Contractor.Westar
    Feb 24, 2004 at 3:05 pm
    Mar 9, 2004 at 3:53 am
  • I'm looking to write a script that will parse a toplevel Makefile in a source tree and then descend into all the directories and parse those Makefiles in order to determine how many 'make' operations ...
    Andrew GaffneyAndrew Gaffney
    Feb 21, 2004 at 5:58 am
    Feb 24, 2004 at 5:45 pm
  • All of the solutions posted added more than six characters, so you'll need multiple tests before you start saving keystrokes. Make sure you're lazy in the good way. ;) map() is a loop, to be sure, ...
    James Edward Gray IIJames Edward Gray II
    Feb 11, 2004 at 2:57 pm
    Feb 12, 2004 at 3:02 am
  • Thanks for the feedback--maybe I screwed up but what happens for me is that the ordered array (1) only lists the keys, not the array values the hash key points to and (2) I still don't get an ordered ...
    Smith Jeff DSmith Jeff D
    Feb 19, 2004 at 4:26 pm
    Feb 20, 2004 at 9:22 pm
  • I'm running perl under windows XP and I keep geting this error: syntax error at (Directory and filename) Line 6, near " ) {" syntax error at (directory and filename) line 9 near "}" The source code ...
    Feb 17, 2004 at 10:12 pm
    Feb 18, 2004 at 4:56 pm
  • Hi, I have to search and replace 'foo' to 'bar' in all the files in a directory(has subdirectories). The files are about 40k in size. On the command line I would do it as, find ./mydir/ -type f ...
    Chetak SasaluChetak Sasalu
    Feb 6, 2004 at 12:45 pm
    Feb 11, 2004 at 5:42 pm
  • Hi folks, as many of you who follow this list will know, a while back I decided to learn OOP and set myself the task of simulating a railway system. A number of people asked if I could make the code ...
    Gary StainburnGary Stainburn
    Feb 27, 2004 at 2:36 pm
    Mar 3, 2004 at 5:55 am
  • Hi Could anyone please tell me what's wrong with the following "program"? The compiler gives errors in the switch statement. Thx!! Anthony %commands=('v',0,'w',1,'t',2,'/pattern/',3,'s',4,'x',5); ...
    Anthony VanelverdingheAnthony Vanelverdinghe
    Feb 19, 2004 at 9:15 pm
    Feb 20, 2004 at 1:05 am
  • Hi I want to split the string below into rows and then columns. I know i can do a couple of splits, push array refs onto a new array, regex it, etc.. But I was know the talented people on this list ...
    Kipp, JamesKipp, James
    Feb 16, 2004 at 4:24 pm
    Feb 17, 2004 at 9:54 pm
  • Frankly I use the apache filter to check for people looking for cmd.exe or root.exe or any one of a dozen files, and instead of my log files filling with their looks they are sent an iframe html page ...
    Feb 6, 2004 at 3:41 pm
    Feb 9, 2004 at 4:24 pm
  • Hello: I have perl 5.005_03 on solaris 2.8 which was installed with the OS. I would like to upgrade it to 5.6. Should I pkgrm the existing perl before I install the new perl ? or is there any other ...
    Ravi MalghanRavi Malghan
    Feb 2, 2004 at 4:51 pm
    Feb 3, 2004 at 6:48 pm
  • Hi list, I just ran across some unexpected results in passing arguments to user-defined subroutines. Could someone who has been around Perl a while longer check this and make sure I'm seeing this ...
    Michael C. DavisMichael C. Davis
    Feb 27, 2004 at 12:56 pm
    Feb 28, 2004 at 8:41 pm
  • Hi, I'm new to perl but need to write a script that takes a file and formats lines. The file has to 2 fields that are tab separated and each field is made up of items separated by some type of ...
    Westcott Andrew-AWESTCO1Westcott Andrew-AWESTCO1
    Feb 22, 2004 at 11:10 am
    Feb 24, 2004 at 6:24 am
  • How can activate the caps lock while the user write in a perl programt (Perl/Tk)
    Feb 28, 2004 at 8:22 pm
    Mar 4, 2004 at 1:09 am
  • I want to transfer a document from a win32 to unix system via Net::FTP but the operation fails (file is not sent properly) i have set up the VsFTPD on a linux system. Do you know what caused the ...
    Feb 25, 2004 at 4:54 pm
    Feb 25, 2004 at 7:00 pm
  • Hi All, I am a beginner at perl and would need some valued advice in the following task. 1. I need to access a website like say, a pathway called http://www.biocarta.com/pathfiles/h_il10Pathway.asp ...
    A KA K
    Feb 18, 2004 at 8:01 pm
    Feb 20, 2004 at 9:07 am
  • Hello, I am running a command as part of my script on a Unix box for which I need to su to a different username. This su requires a password as well. I could not find any option of passing the ...
    Thind, AmanThind, Aman
    Feb 17, 2004 at 1:23 pm
    Feb 18, 2004 at 8:10 am
  • Hello List, I am using a module that does use Carp; and you can specify whther you want croak or carp on an error Which is cool. But there is no way to specify anythign else besides those two. So the ...
    Dan MueyDan Muey
    Feb 10, 2004 at 3:58 pm
    Feb 10, 2004 at 8:50 pm
  • I've written the following subroutine to snag the next available UID in the 700 range from /etc/passwd. I then use the return value with "useradd" to add a new user. The subroutine works fine. If no ...
    Kenton BredeKenton Brede
    Feb 7, 2004 at 6:57 pm
    Feb 9, 2004 at 3:56 pm
  • Hi all, I just work my way through "Learning Perl Objects, References & Modules". Now at one point, I am stuck: Randal introduces classes and methods in Chapter 8. He gives the following example for ...
    Jan EdenJan Eden
    Feb 7, 2004 at 3:07 pm
    Feb 9, 2004 at 3:40 pm
  • HI, I would like to change output format of a file from: abinabdu adanie2 agibson agoh1 aiabouse akko alau alee1 alee2 amitb amohdali amshams anmohand to the format listed below when printing it out ...
    Leaw, Chern JianLeaw, Chern Jian
    Feb 28, 2004 at 8:59 am
    Feb 29, 2004 at 2:28 am
  • Is there a command to drop an element from an array, or what is the best way to do this. Any help appreciated. -- Regards David Inglis 0408502342
    David InglisDavid Inglis
    Feb 26, 2004 at 11:04 pm
    Feb 28, 2004 at 8:36 pm
  • Is there a way to get an external process's output *and* return value? I have a program that opens a pipe to 'make', process all the input, and then checks the return value when the loop ends (pipe ...
    Andrew GaffneyAndrew Gaffney
    Feb 25, 2004 at 1:55 pm
    Feb 26, 2004 at 9:01 pm
  • I want to test if a file is a gif image or not. Is it practicable using a module?
    Feb 21, 2004 at 6:05 pm
    Feb 22, 2004 at 2:11 pm
  • Hi! I'm using the "select undef, undef, undef, 60" trick to sleep for 60 seconds. But it seems to not work after I do a couple of forks like this: while (1) { Fork('sub1'); Fork('sub2'); ...
    Papo NapolitanoPapo Napolitano
    Feb 18, 2004 at 9:50 pm
    Feb 19, 2004 at 11:06 pm
  • Well I am very new to Perl. I have read Oreily's Camel book, but haven't found any thing about my that is used in any of the code. e.g my $var What is my supposed to be over here? Yahoo! India ...
    Harshal BoradeHarshal Borade
    Feb 6, 2004 at 7:46 am
    Feb 19, 2004 at 7:20 pm
  • Hello, Weird thing here: I get a variable from a module via @EXPORT_OK like so: use Foo::Monkey '$howdy'; # import the variable $howdy print $howdy; Works perfect. Now if I add strict- import; to my ...
    Dan MueyDan Muey
    Feb 17, 2004 at 2:59 pm
    Feb 17, 2004 at 6:39 pm
  • Hi folks, Thanks to previous threads on this list, I'm making pretty good progress on what is my first OOP project. The improvements I've made after feedback are: * logical bounderies between ...
    Gary StainburnGary Stainburn
    Feb 10, 2004 at 9:30 am
    Feb 12, 2004 at 7:46 pm
  • Howdy, The subject says it all believe it or not :) What I'm trying to figure out is how to pass an argument (pragma I believe is the proper term) to use() and do sonethign in the package based on ...
    Dan MueyDan Muey
    Feb 4, 2004 at 3:56 pm
    Feb 5, 2004 at 11:45 pm
  • Greetings all, Instead of joining my scalars with ',' I'd like each to appear on a newline. Replacing ',' with '\n' doesn't work. Suggestions? Thanks! my $cfor_edu = join ...
    Gregg O'DonnellGregg O'Donnell
    Feb 26, 2004 at 5:37 pm
    Feb 28, 2004 at 5:26 am
  • Is there an et cetera type command in perl? Specifically, what I want to do is to go from while (1) { my $num = shift @numarray; if ($num % 2==0) { and if the modulus of 2 is 0, find the modulus of 3 ...
    Feb 25, 2004 at 8:53 pm
    Feb 26, 2004 at 2:35 pm
  • #!/usr/bin/perl -w use strict ; use POSIX ; # i need POSIX for some calculations not shown here # variable declarations went here open (fh1, "</path/to/filename") or die ("nope") ; # sample of layout ...
    Joseph PaishJoseph Paish
    Feb 23, 2004 at 3:19 pm
    Feb 24, 2004 at 7:07 am
  • what is the difference between - and =
    Jacob ChapaJacob Chapa
    Feb 21, 2004 at 2:54 am
    Feb 21, 2004 at 10:00 pm
  • I have this script stolen and modified from somewhere #!/usr/bin/perl -w use strict; use File::Find; print "Content-type: text/html\n\n"; my $u=shift; my $sizes = 0; # replace this with your absolute ...
    Feb 2, 2004 at 4:30 am
    Feb 13, 2004 at 3:49 pm
  • I'm back to dealing with the main issue of a badly formatted file being brought down from an archaic system and needing to be cleaned up before being passed to another user or a database table. I ...
    Lone WolfLone Wolf
    Feb 4, 2004 at 11:49 pm
    Feb 5, 2004 at 10:45 pm
  • Hi List. I am looking for a module that will allow me to perform the same function as the Solaris snoop command via Perl. I have searched CPAN, but was unable to find such a module. I would rather ...
    Jason NormandinJason Normandin
    Feb 22, 2004 at 10:59 pm
    Mar 30, 2004 at 3:01 pm
Group Navigation
period‹ prev | Feb 2004 | next ›
Group Overview
groupbeginners @

224 users for February 2004

Rob Dixon: 133 posts R. Joseph Newton: 123 posts James Edward Gray II: 101 posts WC -Sx- Jones: 72 posts Wiggins d'Anconia: 61 posts David le Blanc: 50 posts John W. Krahn: 44 posts Randy W. Sims: 39 posts John: 36 posts Jan Eden: 34 posts Andrew Gaffney: 33 posts Öznur Taştan: 31 posts Jeff 'japhy' Pinyan: 27 posts Dan Muey: 26 posts Charles K. Clarkson: 25 posts Williamgunther: 21 posts Jenda Krynicky: 21 posts Michael C. Davis: 21 posts David: 20 posts Joel: 20 posts
show more