FAQ

Search Discussions

171 discussions - 684 posts

  • Hi All~ I'm using the glob function to grab all the files in a given directory and then using crontab to check it every 5 minutes. Once I have the files I'm using the diamond operator to read every ...
    Brian VolkBrian Volk
    Dec 12, 2005 at 5:32 pm
    Dec 15, 2005 at 1:04 pm
  • Hi All, I am currently automating some UI tests with the help of WWW::Mechanize module. I need to save images on a webpage. I tried using the find_image function to get the reference of the image ( ...
    Dhanashri BhateDhanashri Bhate
    Dec 20, 2005 at 11:26 am
    Apr 8, 2006 at 6:03 pm
  • hi,lists, I have a file which is so large,which looking as: 61.156.49.18:28360 61.183.148.130:27433 222.90.207.251:25700 202.117.64.161:25054 218.58.59.73:24866 221.233.24.9:22507 222.187.124.4:21016 ...
    Jennifer GarnerJennifer Garner
    Dec 8, 2005 at 8:37 am
    Dec 9, 2005 at 3:48 am
  • I want to know how many new line chars there are in all files in a directory (and it's subdirectories). What's the best way? Thanks!
    The GhostThe Ghost
    Dec 2, 2005 at 3:25 pm
    Dec 3, 2005 at 3:17 pm
  • hello everyone, I have a simple question. I have a string that looks like this : <counter id="183268" since="SDOPERFV16" aggr="Sum" name="pcmTcuFaultOutOfService"/ and I would like to store the ...
    Alexandre ChecinskiAlexandre Checinski
    Dec 12, 2005 at 10:03 am
    Dec 13, 2005 at 1:40 pm
  • Hi all, I have a module which does nothing but include a bunch of use statements (Shawn Corey, I think you taught me how to do that).It looks like this: ...
    VmalikVmalik
    Dec 7, 2005 at 3:26 pm
    Dec 8, 2005 at 7:50 pm
  • Hello everyone, I'm trying to define a constant hash and have the following: use constant STOPWORDS = map { lc $_ , 1 } qw(a about above across adj after); I do not get a hash from this. This does ...
    Kevin OldKevin Old
    Dec 16, 2005 at 8:26 pm
    Dec 20, 2005 at 12:49 am
  • Hi,lists, I have a small script,when it run,it generate much more lines and put them into a file. The code for printing I writed: map { print RESULT $_,":",$ips{$_},"\n" } sort { $ips{$b} <= $ips{$a} ...
    Jennifer GarnerJennifer Garner
    Dec 6, 2005 at 11:06 am
    Dec 6, 2005 at 6:10 pm
  • Hi all- I'm attempting to loop thru an input file, executing a SELECT query with the value from each line. The script works for the first iteration, and then gives these error messages: ...
    JohnJohn
    Dec 13, 2005 at 7:28 am
    Dec 16, 2005 at 9:10 am
  • Hi List, I want to get that value of *-i* set in below line. *Options=-a"hello" -mt -ml3 -i"dir1\dir2" -k -p -i"dir3\dir4" -m* What is the best way to get the value of *-i* values into one array. For ...
    Umesh T GUmesh T G
    Dec 15, 2005 at 12:01 pm
    Dec 16, 2005 at 6:23 am
  • I just had a discussion about variables going out of scope (for memory considerations) The idea was presented that variables go out of scope as soon they're last referenced in a block, I always ...
    JupiterHost.NetJupiterHost.Net
    Dec 6, 2005 at 5:07 pm
    Dec 6, 2005 at 10:44 pm
  • What's the rationale for hardwiring the Perl executable pathname into the Perl interpreter? It is some oddity to guarantee Perl can find its library via a relative path? Is it a safety thing? Adriano.
    Adriano FerreiraAdriano Ferreira
    Dec 2, 2005 at 1:19 pm
    Dec 3, 2005 at 4:09 pm
  • Howdy, For an Acme module I'm trying to make an alternative to print, but can;t get goto to work with print: I'd like this: perl -mstrict -wle 'sub x {goto &print} x("hi");' to work like this: perl ...
    JupiterHost.NetJupiterHost.Net
    Dec 18, 2005 at 1:43 am
    Dec 18, 2005 at 11:25 pm
  • Hi, I'm trying to change the string in .bash_profile: PATH=$PATH:/home/bin to PATH=$PATH/home/bin:/usr/local/httpd/bin I'm using the following: perl -pi~ -e ...
    Mário GamitoMário Gamito
    Dec 14, 2005 at 12:18 am
    Dec 14, 2005 at 2:33 am
  • Hello dears, I want to count words in the following file: ------------------------------ ID- some number TI- some text BB AB- some text A BB AU- some text ID- some number TI- some GGG text AB- some ...
    Andrej KastrinAndrej Kastrin
    Dec 12, 2005 at 10:00 am
    Dec 12, 2005 at 10:00 pm
  • Hi, Iam using <STDIN to accept user input but the script just hangs at that point. I type in the value & program is just stuck at that point. i know its got to do with buffer flushing. when iam using ...
    Poonam PahilPoonam Pahil
    Dec 29, 2005 at 10:22 am
    Dec 30, 2005 at 8:57 am
  • Hi, I have created a program that monitors a text file which sits on another computer from the network, and when it sees a change in that file, it opens it, and gets the newly added lines. I have ...
    Octavian RasnitaOctavian Rasnita
    Dec 13, 2005 at 8:15 pm
    Dec 13, 2005 at 11:57 pm
  • I'm trying to move the configuration variables out of three perl scripts and put them in a config file. Fine, no problem so far. The way this works is an email message with a given subject is ...
    M. LewisM. Lewis
    Dec 2, 2005 at 5:28 am
    Dec 4, 2005 at 5:55 am
  • Hi, I want to store column data of xls file in array. E.g. $array[0]=1st column of xls sheet. $array[1]=2st column of xls sheet. $array[2]=3st column of xls sheet. ... etc.... Can anybody help me... ...
    Pant, HridyeshPant, Hridyesh
    Dec 1, 2005 at 4:22 am
    Dec 2, 2005 at 6:00 am
  • Is there a constant or a definition for a maximum number in perl? And the same question for a minimum value? Alon
    Alon MarxAlon Marx
    Dec 27, 2005 at 11:58 am
    Dec 27, 2005 at 1:50 pm
  • How can I check inside a script to see if a file has already been opened early and is still open? Does the perl interpreter keep track of that kind of stuff. It seems error prone to set a variable to ...
    ReaderReader
    Dec 23, 2005 at 10:05 pm
    Dec 27, 2005 at 2:40 am
  • Hi There, I have some problems undestanding how to parse a hash to module of my own. I have this hash %person : $person{$Name}{Name} = "xxx"; $person{$Name}{Id} = zzzz; @( $person{$Name} {Friends} ) ...
    Ditlev, Unix ConsultingDitlev, Unix Consulting
    Dec 18, 2005 at 3:47 pm
    Dec 23, 2005 at 3:18 pm
  • I have tried this question in a couple of other places but the answers are far above my current level of understanding of oop - which is the level of very interested newbie - real newbie. So here ...
    Ken FarmerKen Farmer
    Dec 7, 2005 at 3:36 am
    Dec 8, 2005 at 5:22 am
  • Hello dears, I have a file in row data format, which stores different terms (e.g. genes) and look like: ------------ ABH HD HDD etc. ------------ Then I have second file which looks like: ...
    Andrej KastrinAndrej Kastrin
    Dec 7, 2005 at 5:00 pm
    Dec 7, 2005 at 8:29 pm
  • Hi,lists, Seeing this code please: our %sym = ( name = 'flower', age = 23, ); print ${*{$::{sym}}{HASH}}{name}; The result of printing is : flower. How to analyse the last sentence of that ...
    Jennifer GarnerJennifer Garner
    Dec 5, 2005 at 1:52 pm
    Dec 7, 2005 at 1:16 am
  • Hi, I have tried to install DBD::mysql under Linux manually and also using cpan, but the "make test" command gives the error saying that it can't connect to the server using the socket ...
    Octavian RasnitaOctavian Rasnita
    Dec 3, 2005 at 6:52 pm
    Dec 5, 2005 at 11:01 am
  • Hi, I am trying to move some file form one folder to other . I am able to move the file if i do it from the dos prompt but it gives me access denied when i try it using Perl. It seem to me a problem ...
    Manoj Thakkar, NoidaManoj Thakkar, Noida
    Dec 1, 2005 at 5:09 am
    Dec 3, 2005 at 7:27 pm
  • How can I make this do what I mean? #!/usr/bin/perl use warnings; use strict; my $var = 'world'; undef $/; my $data = <DATA ; print $data; #oops __DATA__ hello $var
    Andrew BrosnanAndrew Brosnan
    Dec 2, 2005 at 1:04 am
    Dec 2, 2005 at 3:18 am
  • hi,lists, I have two perl scripts as following: a.pl: ---- #!/usr/bin/perl use strict; my @logs = glob "~/logs/rcptstat/da2005_12_28/da.127.0.0.1.*"; foreach my $log (@logs) { open (HD,$log) or die ...
    Jeff PangJeff Pang
    Dec 28, 2005 at 12:38 pm
    Dec 29, 2005 at 3:11 pm
  • Hi, I have writtena simple file find perl script but i am getting the following problem "Can't cd to (C:/) System Volume Information: Permission denied" here is my code use warnings; use File::find; ...
    Manoj Thakkar, NoidaManoj Thakkar, Noida
    Dec 26, 2005 at 5:34 am
    Dec 28, 2005 at 3:16 am
  • Greetings, A little background first: I have a bunch of PERL scripts that I use to automate tasks performed by CAM software. I have one HP-UX 10.20 server, a Linux (Red Hat ES 3.0) server, and ...
    Zielfelder, RobertZielfelder, Robert
    Dec 21, 2005 at 1:15 pm
    Dec 23, 2005 at 10:59 am
  • Iam using the system command to call an application(windows) that sets up the enviorment. as per my knowledge, a subshell would be created & hence the modified enviorment would be lost once system ...
    Poonam PahilPoonam Pahil
    Dec 21, 2005 at 9:34 am
    Dec 21, 2005 at 12:31 pm
  • Hi, I am new to Perl. Can some one please help me by giving some tips that I need to look into during migration of an older version of Perl script (CGI). What is the stable version of Perl at this ...
    Venkat KumarVenkat Kumar
    Dec 15, 2005 at 6:53 pm
    Dec 16, 2005 at 1:50 am
  • Hi list. I have two dates in format YYYY-MM-DD for example ( 2005-09-01), but I need to pass them to timestamp format, how do I do it ???. I tried with time, localtime, gmtime, but I can´t. Thanks. ...
    Rafael MoralesRafael Morales
    Dec 2, 2005 at 7:23 pm
    Dec 2, 2005 at 8:49 pm
  • Hello, In the Script below the line: last if ($num = 35) is giving me this error: Use of uninitialized value in int How do I avoid this error? my @files contains: Gambia001.tiff through ...
    David GildenDavid Gilden
    Dec 30, 2005 at 8:04 pm
    Dec 30, 2005 at 9:03 pm
  • Hi all, I have a 15 thousand directories - each of them contain say 10 files (all *.gzip) out of this 10 *.gz files - I want to check whether a file named foo.gz contain any content or not - since my ...
    S KhadarS Khadar
    Dec 30, 2005 at 12:14 pm
    Dec 30, 2005 at 8:11 pm
  • I have a log that I am parsing and I can get the login and logout time string parsed out. It looks like this: 13:50:01 # this is the when the user logged in 14:14:35 # this is when the user logged ...
    RobertRobert
    Dec 29, 2005 at 2:19 am
    Dec 29, 2005 at 4:16 pm
  • Hi List, I need to put each letter from a string to an array. I am doing it this way and it works. I wanna know if there is any other better way to do this / a built-in function. #! /usr/bin/perl ...
    Umesh T GUmesh T G
    Dec 28, 2005 at 5:50 pm
    Dec 29, 2005 at 9:35 am
  • All, Here is my script and it is outputting "file is not present" when it should be outputting "temp file is good and $MHfile is there\n"; Am I missing something since I am running this is a Windows ...
    DbsmithDbsmith
    Dec 28, 2005 at 10:01 pm
    Dec 29, 2005 at 12:01 am
  • Hello, Is there any way to auto-size cells when you are generating a CSV file using Perl (without using any additional modules)? Thanks. Brian Bernard Senior, Direct Advanced Response Team Premier ...
    Brian BernardBrian Bernard
    Dec 24, 2005 at 3:00 pm
    Dec 24, 2005 at 6:18 pm
  • Hello, I am new to this list. Can someone please let me know if the built-in functionality of Perl can print OUT to CSV but control what the CSV looks like? Actually, I know that I can output to CSV ...
    Brian BernardBrian Bernard
    Dec 22, 2005 at 6:28 am
    Dec 22, 2005 at 4:12 pm
  • Hello all, I am sure many before me asked this question. Could not locate it in archive. So here I am. I am new to Perl but not to programming. I have experience with software development using Java ...
    Just AnotherJust Another
    Dec 17, 2005 at 2:41 am
    Dec 21, 2005 at 3:59 pm
  • Greetings, I looked for documentation on 'use constant' but it has eluded it me..... my $path = `pwd`; use constant UPLOAD_DIR = "/home/sites/site123/web/private/_data/"; I want to get the Document ...
    David GildenDavid Gilden
    Dec 20, 2005 at 12:34 am
    Dec 20, 2005 at 4:06 pm
  • Hi all So, I have 4 fields file; fields are tab separated: 00001 BRCA3 BRCA33|BRCA55 symbol 998 00002 ABCB1 DASH|BASG|AVGA4 symbol 7583 In first step I split each row and store it in array; e.g.: ...
    Andrej KastrinAndrej Kastrin
    Dec 19, 2005 at 9:42 am
    Dec 19, 2005 at 1:06 pm
  • I have broken out my DB connection calls into a small module. It isn't anything fancy so it is basically: package DBConn use strict; use warnings; sub { # connection info for db1 } sub { # connection ...
    RobertRobert
    Dec 16, 2005 at 3:09 am
    Dec 17, 2005 at 5:15 pm
  • Hi All, I tried to remove white space and newlines from HTML pages using HTML::Strip::Whitespace module. It removes the white space, but not NEW LINES. Here is my script: ==================== use ...
    Durai rajDurai raj
    Dec 13, 2005 at 4:59 am
    Dec 13, 2005 at 11:56 am
  • Hi, Can anyone explain why: $i++; is faster than: $i = 1; and even more faster than: $i += 1; Thanks. Teddy
    Octavian RasnitaOctavian Rasnita
    Dec 11, 2005 at 5:27 pm
    Dec 11, 2005 at 8:42 pm
  • Hello, I would like to skip the first ten lines of output from tail, then print any new records matching my array, but I seem to be stuck, below will run but nothing prints: tail /var/log/messages is ...
    Ron McKeeverRon McKeever
    Dec 5, 2005 at 4:50 pm
    Dec 5, 2005 at 10:06 pm
  • Hi Everybody, I have a script where I need to replace 45 in the beginning, with nothing in a variable.... It looks like this: #!/usr/bin/perl $modtager = "45247"; $modtager =~s/45//; Then $modtager ...
    Mads N. VestergaardMads N. Vestergaard
    Dec 2, 2005 at 9:23 am
    Dec 5, 2005 at 2:09 pm
  • Hi,lists, I usually meet some problems of closure when do development under mod_perl. Can anyone tell me that what use of a closure in perl?thanks.
    Jennifer GarnerJennifer Garner
    Dec 2, 2005 at 3:44 pm
    Dec 3, 2005 at 3:55 am
Group Navigation
period‹ prev | Dec 2005 | next ›
Group Overview
groupbeginners @
categoriesperl
discussions171
posts684
users151
websiteperl.org

151 users for December 2005

John W. Krahn: 37 posts Shawn Corey: 32 posts Chris Devers: 29 posts John Doe: 26 posts Adriano Ferreira: 20 posts JupiterHost.Net: 20 posts Xavier Noria: 20 posts Charles K. Clarkson: 18 posts Timothy Johnson: 16 posts Wiggins d'Anconia: 16 posts Jennifer Garner: 14 posts Bob Showalter: 13 posts Dr.Ruud: 13 posts Zentara: 13 posts Andrej Kastrin: 12 posts Ing. Branislav Gerzo: 12 posts Octavian Rasnita: 12 posts Vishal malik: 12 posts Dhanashri Bhate: 11 posts Timothy Johnson: 11 posts
show more
Archives