FAQ

Search Discussions

200 discussions - 830 posts

  • yes I agree I was a little ambiguous... I was in a hurry. sorry. Anyway here is my updated code. and here is a sample output: My goal is to get all F01 which I am but I am having issues capturing all ...
    DbsmithDbsmith
    Apr 27, 2005 at 12:54 pm
    Apr 29, 2005 at 10:11 pm
  • hello, I'm making a simple script that's supposed to update a certain number of boxes, spread around the area. my script is supposed to to connect to every hosts (via a file named "hosts") using ssh, ...
    GuiGui
    Apr 4, 2005 at 7:15 pm
    Jun 13, 2005 at 6:20 pm
  • Why would one use Require instead of Use?
    Paul KrausPaul Kraus
    Apr 21, 2005 at 1:03 pm
    Apr 22, 2005 at 1:42 am
  • Hi All, I am using the spreadsheet::parseexcel module to open up a series (31) spreadsheets and grab the row counts. Here is an excerpt with the ParseExcel Code. my $oBook; my $oWks; foreach ...
    Craig MoynesCraig Moynes
    Apr 26, 2005 at 5:25 pm
    Apr 27, 2005 at 11:11 pm
  • Hello, Does anyone know of a website that lists some programming exercises to help in learning perl? I find it a lot easier to learning a language if I have exercises to apply it to.
    Stephen DayStephen Day
    Apr 18, 2005 at 5:47 pm
    Apr 20, 2005 at 1:34 am
  • Hi, all: Below is a script to extract jpegs from an image of a corrupted or accidentally erased CF or other removable media from a digital camera. It's (heavily) modified from some C++ code I found ...
    Jay SavageJay Savage
    Apr 12, 2005 at 9:50 pm
    Apr 14, 2005 at 2:54 pm
  • Hi, I have following code that measure the substring. It basically the number of positions of substrings that occur (dotted count) CASE A: ....... ....... ...... GATTACGAGTGGCGCTCGTGTAACGGCA #Score ...
    Edward WijayaEdward Wijaya
    Apr 8, 2005 at 5:07 pm
    Apr 9, 2005 at 10:40 am
  • Hi, I am a newbie to perl and I have a question. In one of my project, the perl script will create a logfile. Inside the log file, the username/password is in clear text. I am trying to hide the ...
    Rentachintala, JaganRentachintala, Jagan
    Apr 26, 2005 at 9:59 pm
    May 2, 2005 at 2:08 pm
  • Hi.... Can any one suggest a good algorithm for encrpt and decrypt the files ..I donot want to use any perl module for that... Thanks Anish
    Anish Kumar KAnish Kumar K
    Apr 18, 2005 at 9:08 am
    Apr 20, 2005 at 8:19 am
  • Hi, I'm parsing a log file that contains this format: 1112677214 31388202 181264589 1112677214 8843 59460 8843 59460 1112676919 10728 59045 10728 59045 1112676900 10617 59006 10728 59045 1112676600 ...
    Harold CastroHarold Castro
    Apr 5, 2005 at 6:13 am
    Apr 8, 2005 at 8:50 pm
  • Hi All, Here is my code so far. I am really getting frustrated with my inability to get this right. I didn't understand Chris' earlier suggestion about using defined but I tried using it anyway. I ...
    Keith WorthingtonKeith Worthington
    Apr 20, 2005 at 7:11 pm
    Apr 21, 2005 at 3:02 pm
  • Why does this work.... my $date = 'one | two |three |'; my @record = map ( whitespace($_), (split /\|/,$_) ); sub whitespace { my $string = shift; $string =~ s/^\s+|\s+$//g; return $string; } but ...
    Paul KrausPaul Kraus
    Apr 20, 2005 at 1:27 pm
    Apr 21, 2005 at 7:36 am
  • Dear fellow PERL coders..., What is the "&& do" part of the code doing, i.e. I am looking to understand the syntax, the example was found in perl beginners archive, from some else's post... Thanks, ...
    David GildenDavid Gilden
    Apr 18, 2005 at 6:48 am
    Apr 20, 2005 at 9:09 am
  • Hi all I am having trouble getting a subprocedure to work using parameter data passed with shift Here is the calling routine. It's a snippet. All the modules are called properly sub mainmenu { my ...
    Hawkes, Mick IHawkes, Mick I
    Apr 18, 2005 at 2:29 am
    Apr 18, 2005 at 7:42 am
  • Hallo, all! I have a function which prints array: sub print_array { my $array_ref = shift; for(@$array_ref){ print "$_\n"; } } And I have a big array, for example named @array. I want to print @array ...
    Vladimir D BelousovVladimir D Belousov
    Apr 7, 2005 at 12:54 pm
    Apr 8, 2005 at 2:34 pm
  • I need to combine directories as follows: Source directory structure: DirA SubDirAA More directories SubDirAB More directories SubDirAC More directories DirB SubDirAA More directories SubDirAB More ...
    Debbie CooperDebbie Cooper
    Apr 6, 2005 at 6:43 pm
    Apr 7, 2005 at 3:09 pm
  • If I use the auto-increment feature for a couple of normalized relations, how do I insert into them? Specifically, when I insert into a relation with the autoincrement feature on the primary key, how ...
    Siegfried HeintzeSiegfried Heintze
    Apr 11, 2005 at 11:18 pm
    May 6, 2005 at 11:32 am
  • Hi all, Is it possible to use GetOpt::Long (or something similar) in a subroutine using @_ instead of in the standard way (using @ARGV)? I want to have the following scenario, but use GetOpt in a ...
    Olivier, Wim WOlivier, Wim W
    Apr 20, 2005 at 7:54 am
    Apr 22, 2005 at 1:55 pm
  • I am trying to convert a unix script to perl. The script takes 2 command line arguments, source and target. I am unable to get the file copy and rename function working properly. Here is what I have ...
    Brian MilbrandtBrian Milbrandt
    Apr 19, 2005 at 10:22 pm
    Apr 21, 2005 at 12:32 am
  • In the Perl documentation (perlintro) it says that you can find out the number of elements in an array using the following syntax: print $myvar[$#mmyvar]; I am running into a problem when I try to ...
    Aaron C. de BruynAaron C. de Bruyn
    Apr 18, 2005 at 7:19 am
    Apr 18, 2005 at 3:00 pm
  • Hi All The code gives strange error $subject = I get some value from the function if ($subject eq '' || !defined $subject) { Some operation } Operation `eq': no method found, left argument in ...
    Anish Kumar KAnish Kumar K
    Apr 13, 2005 at 4:39 am
    Apr 14, 2005 at 11:20 pm
  • Are these two statements the same? my (@array, @array1) = ( ); my @array = my @array1 = ( ); Derek B. Smith OhioHealth IT UNIX / TSM / EDM Teams
    DbsmithDbsmith
    Apr 5, 2005 at 1:33 pm
    Apr 5, 2005 at 11:01 pm
  • Hi :) Ive been working all afternoon trying to get what seems like a fairly simple outcome with split, but depite trying again & again i can't get things going. I would very much appreciate any ...
    Brett WilliamsBrett Williams
    Apr 1, 2005 at 9:46 am
    Apr 2, 2005 at 1:36 am
  • Hi, I need to create some customized pdf reports and was wondering if there are any perl modules out there to help. I already have my perl script getting data from the db and creating a csv file. I ...
    RadhikaRadhika
    Apr 28, 2005 at 7:42 pm
    May 2, 2005 at 3:22 pm
  • Hi, i have a requirement, as in based on one command line option, the rest of the arguments change for the same script. eg: script could be called in either of the ways script1 -option1 -option2 ...
    LohitLohit
    Apr 29, 2005 at 5:39 am
    Apr 29, 2005 at 10:00 am
  • Hi everyone, Here is an example from the perlrun perldoc page: perl -ane 'print pop(@F), "\n";' is equivalent to while(< ) { @F = split(' '); print pop(@F), "\n"; } My question is, can I get Perl to ...
    Larsen, Errin M HMMA/ITLarsen, Errin M HMMA/IT
    Apr 25, 2005 at 6:45 pm
    Apr 25, 2005 at 7:49 pm
  • Hi all. I have a large script ( 6000 lines ) that I'd like to break into logical units. Is there a way I can tell perl to 'append' a list of files into 1 script so that I can call subs from any of ...
    Daniel KasakDaniel Kasak
    Apr 21, 2005 at 5:39 am
    Apr 22, 2005 at 2:10 am
  • Guys Thanks to all the useful suggestions, especially to Charles for the code review, I will implement your suggestions throughout my code. But back to the original question. I need to put a lot of ...
    Hawkes, Mick IHawkes, Mick I
    Apr 19, 2005 at 12:16 am
    Apr 20, 2005 at 1:34 am
  • Hi List, How do i convert a string variable returned by some XPath API into a number so that I can compare it or loop using this number. I am reading one number from XML and I want to use it for ...
    Manish SapariyaManish Sapariya
    Apr 6, 2005 at 2:18 pm
    Apr 7, 2005 at 7:20 am
  • Hello everyone, I am new to Perl and am trying to code a simple program that will read a list of files from a text file then present the user with some options regarding those files (hope that makes ...
    Five421Five421
    Apr 4, 2005 at 10:42 am
    Apr 4, 2005 at 1:31 pm
  • Hi All, I have just joined this group two days back. So 'Hello' to every one out there. I am new to Perl and I want to do some project in it. I have some very basic queries in Perl, so thought of ...
    Rajat DudejaRajat Dudeja
    Apr 18, 2005 at 2:02 pm
    Apr 28, 2005 at 9:10 am
  • Hello everyone, This is the first time I was able to get a complex regex actually working as I expect, but I wanted someone to comment on it, in case I am overlooking something very major. I am ...
    Peter RabbitsonPeter Rabbitson
    Apr 27, 2005 at 5:16 pm
    Apr 27, 2005 at 6:01 pm
  • Hi List, I have default MIME module installed and I have installed the lated version in one of my own directory. Any my perl code needs the latest version which I have installed in local_perl_lib. ...
    Manish SapariyaManish Sapariya
    Apr 14, 2005 at 12:58 pm
    Apr 26, 2005 at 4:15 am
  • I'm trying to write a perl one-liner that will edit an iCalendar format file to remove To Do items. The file contains several thousand lines, and I need to remove several multi-line blocks. The ...
    Kevin HortonKevin Horton
    Apr 25, 2005 at 11:05 am
    Apr 26, 2005 at 1:07 am
  • Hi everybody! I'm very newbie programmer of Perl and I can't make a little program with a small number of arguments with this Perl module, Getopt::Mixed. I like that somebody will can make a simple ...
    Carlos ManteroCarlos Mantero
    Apr 23, 2005 at 12:09 pm
    Apr 25, 2005 at 2:01 pm
  • Hi List, Can anybody tell me difference among all of the following sub declaration. 1. sub abc {} 2. sub xyz() {} # Please not round brackets, When I had this definition, I got following error. ...
    Manish SapariyaManish Sapariya
    Apr 7, 2005 at 12:48 pm
    Apr 19, 2005 at 8:18 pm
  • I need to print the text between two words that are in different lines.
    Lio lopLio lop
    Apr 19, 2005 at 12:14 pm
    Apr 19, 2005 at 2:36 pm
  • Hello, I am trying to pass an array by reference since it could become very large. The function should take the array and print it out but only 10 elements per line. #!/usr/bin/perl -w use strict; ...
    Michael GaleMichael Gale
    Apr 17, 2005 at 6:13 am
    Apr 18, 2005 at 9:40 am
  • I have a script that is reading input from ARGV. The script is being passed a file name as follows: datefile.pl c:\program files\IBM\SQLLIB\DB2\db2diag.log The problem I am running into is that the ...
    Bret GoodfellowBret Goodfellow
    Apr 13, 2005 at 10:12 pm
    Apr 14, 2005 at 11:37 pm
  • I want to write a perl script like "gnu less". My perl script accepts input on STDIN or filename(s) as arguments. If both are missing it should print the error message. How do I do this ? The ...
    Ramprasad A PadmanabhanRamprasad A Padmanabhan
    Apr 13, 2005 at 6:48 am
    Apr 13, 2005 at 9:05 pm
  • Hello, I am trying to create case statement, and I am not sure I am on the right track, any comments? Thanks, Dave Gilden SWITCH: { ## yacht form if ($whichForm eq "123") { $subject = "123 Form"; ...
    David GildenDavid Gilden
    Apr 12, 2005 at 3:24 pm
    Apr 12, 2005 at 5:15 pm
  • Hi there, i have written a socket c++ server, which listens for clients and understands some commands. here the structs of the server commands: enum command { SET_PRIO, CLEAR, SEND_STRING, ...
    News-funsiNews-funsi
    Apr 5, 2005 at 10:16 pm
    Apr 7, 2005 at 6:40 pm
  • I believe that I may have asked this question before and cannot find the answer that I had gotten, So I will ask again. I have upgraded DBI to version 1.48 and I am now having issues and errors with ...
    Christopher L HoodChristopher L Hood
    Apr 6, 2005 at 12:33 pm
    Apr 7, 2005 at 12:42 pm
  • Hi All, Do we have Perl script that can edit & add to the Windows (XP, 2000) path.? Thanks Amr
    AmrAmr
    Apr 27, 2005 at 12:31 pm
    Apr 27, 2005 at 4:20 pm
  • Hi all I'm trying to write a basic class that will contain some configuration details, unfortunately it bombs out and doesn't do anything. ################### start of class ...
    Graeme McLarenGraeme McLaren
    Apr 24, 2005 at 5:01 pm
    Apr 25, 2005 at 9:38 am
  • Hello everyone, Very simple: I need to generate a file and upload it to ftp. Currently I am wrapping the file together, writing it out to a temp file on disk, calling $ftp- put($tmp_file) on it, and ...
    Peter RabbitsonPeter Rabbitson
    Apr 21, 2005 at 2:42 pm
    Apr 21, 2005 at 6:20 pm
  • The following regex is failing strangely: my @tables = $content =~ m#\[table\](.*?)\[/table\]#g; foreach (@tables) { my $table = $_; if ($content =~ m#$table#) {print "yes old table is there!\n";} } ...
    Angie ahlAngie ahl
    Apr 19, 2005 at 6:55 pm
    Apr 20, 2005 at 12:19 pm
  • Hi All, I am new to the list and need some quick help. I have been kicking around with vi and sed for years but never took the time to learn Perl. Now I need to use Perl and could really use a ...
    Keith WorthingtonKeith Worthington
    Apr 18, 2005 at 6:13 pm
    Apr 20, 2005 at 10:13 am
  • I am new to PERL but how would I write a script that would read in a file and output the last 10 lines? I guess it is sort of like the UNIX command of Tail. Any ideas, much appreciated. DA
    Dave AdamsDave Adams
    Apr 19, 2005 at 4:49 pm
    Apr 19, 2005 at 8:32 pm
  • Hi All, Many thanks to Jay for his examples I have now written a perl script that is munging a text file. Eventually I will move the perl code into a function inside a postgresql database. I am ...
    Keith WorthingtonKeith Worthington
    Apr 19, 2005 at 12:58 pm
    Apr 19, 2005 at 5:47 pm
Group Navigation
period‹ prev | Apr 2005 | next ›
Group Overview
groupbeginners @
categoriesperl
discussions200
posts830
users167
websiteperl.org

167 users for April 2005

John W. Krahn: 66 posts Jay Savage: 47 posts Offer Kaye: 45 posts Chris Devers: 36 posts JupiterHost.Net: 29 posts Charles K. Clarkson: 27 posts John Doe: 26 posts Ing. Branislav Gerzo: 22 posts Peter Rabbitson: 20 posts Manish Sapariya: 18 posts N. Ganesh Babu: 14 posts Wagner, David --- Senior Programmer Analyst --- WGO: 14 posts Brian Volk: 13 posts Randal L. Schwartz: 13 posts Zentara: 13 posts Dbsmith: 11 posts Keith Worthington: 11 posts M. Kristall: 11 posts Bob Showalter: 10 posts Paul Kraus: 10 posts
show more
Archives