FAQ

Search Discussions

85 discussions - 428 posts

  • Hi, I have tried the following calculation with ActivePerl 5.10.0 build 1004 under Windows XP Pro: print 0.79 - 0.798; And it gave the following result: -0.00800000000000001 which is obviously wrong. ...
    Octavian RasnitaOctavian Rasnita
    Jul 17, 2009 at 10:12 am
    Jul 19, 2009 at 2:33 pm
  • Is it not possible to use $_ in subroutines? For example, my temptation was to do this: ************************************** sub isDate { $_ = shift; if (m!\d{2}/\d{2}/\d{2}!) { return 1; } else { ...
    Bryan HarrisBryan Harris
    Jul 26, 2009 at 1:17 pm
    Jul 29, 2009 at 9:13 pm
  • I am done processing and I want to place the final output line also on the screen. Here is what I have: if ( $GlblInfo{audit} ) { printf "\n\n*****Should be last line in the audittrail ...
    Wagner, David --- Senior Programmer Analyst --- CFSWagner, David --- Senior Programmer Analyst --- CFS
    Jul 20, 2009 at 10:52 pm
    Jul 21, 2009 at 6:46 pm
  • Ok, I'm done with the philosophical stuff. I forget where I read about the warning "...will not stay shared", so I'm going for the quick answer here. I want to create a master dispatch table of all ...
    Steve BertrandSteve Bertrand
    Jul 19, 2009 at 8:43 pm
    Jul 19, 2009 at 11:49 pm
  • Thanks, I've added the deference to the hash and it now compiles and executes. However I'm now getting a different run time error: Odd number of elements in hash assignment at ...
    Nick BrownNick Brown
    Jul 16, 2009 at 4:12 pm
    Aug 11, 2009 at 11:07 pm
  • Hi, I noticed this error appearing when I stop/started my httpd server recently (yes this is modperl 1 code). This offending code reads a like this: package Some::Pack; .. .. sub addItemsToBasket { ...
    DermotDermot
    Jul 28, 2009 at 9:08 am
    Jul 29, 2009 at 2:37 pm
  • Hi everyone, In the test files I have that are used for testing the properties and qualities of a data/type validator, I make these hashes available globally, initially as undef. I have a reset() ...
    Steve BertrandSteve Bertrand
    Jul 17, 2009 at 5:51 pm
    Jul 18, 2009 at 1:46 pm
  • Hi all, I want a perl ping script (console based) to monitor server up/down state. So far I have tried two different approaches, though none of them were successful. *First Approach* Call the ...
    Amit SaxenaAmit Saxena
    Jul 21, 2009 at 11:31 am
    Jul 22, 2009 at 6:14 am
  • Hi all, While writing some tests, I ran into something that took me quite a while to troubleshoot. Although I figured out the problem, I don't understand why the problem is occurring. Can someone ...
    Steve BertrandSteve Bertrand
    Jul 15, 2009 at 11:19 pm
    Jul 16, 2009 at 3:34 pm
  • Hello, what's the standard module for accessing MSSQL? I searched on CPAN but found a lot. The program should be run on Linux, not Windows. Thanks.
    PracticalperlPracticalperl
    Jul 7, 2009 at 8:11 am
    Jul 8, 2009 at 1:39 am
  • Hello there, I'd like to read a file thet is a list of numbers like: 3084 4855 2904 making each line (each number) one of the elements of the array. I've tried foreach my $line (<FILEHANDLE ){ push ...
    Emanuele OsimoEmanuele Osimo
    Jul 22, 2009 at 9:47 pm
    Jul 22, 2009 at 11:48 pm
  • Hi, I am writing a perl script which creates a file (on Linux/UNIX) using system's date. e.g. log_2009-07-07.gz Here is the code I wrote. #!/usr/bin/perl -w # Prog for demostrating file name ...
    Meghanand AcharekarMeghanand Acharekar
    Jul 8, 2009 at 7:37 am
    Jul 8, 2009 at 8:46 am
  • Perl Beginners: I am thinking about a Perl web/ database application for political organizing and campaigns -- generating precinct walk lists, generating phone banking lists, tracking contacts, etc.. ...
    David ChristensenDavid Christensen
    Jul 27, 2009 at 11:00 pm
    Jul 28, 2009 at 8:37 am
  • The script below is my first usage of perls `chmod', but it appears to be in keeping with the info at perldoc -f chmod. But somehow in the print of $mode it turns into 493... even though it is set to ...
    Harry PutnamHarry Putnam
    Jul 6, 2009 at 12:00 pm
    Jul 8, 2009 at 1:56 pm
  • Hi All, I am having a small problem with my if looops. I have written a small script to parse a file I have input: HMU00030 2522 4840 DNA gyrase subunit B HMU00040 4841 5083 putative membrane protein ...
    9844712298447122
    Jul 31, 2009 at 1:24 pm
    Jul 31, 2009 at 4:22 pm
  • Hi, I have some data I will read into an array that is the format "some_string"@"date" such as "foo/bar/biz@07-23-2009-11.42.02". To work with this, I will convert the date part (everything after the ...
    Joseph L. CasaleJoseph L. Casale
    Jul 24, 2009 at 4:18 am
    Jul 27, 2009 at 6:00 pm
  • Hello, How to lookup the max and min value in an array? Just like SQL's max() and min() functions. Thanks.
    Jenn G.Jenn G.
    Jul 22, 2009 at 7:18 am
    Jul 22, 2009 at 5:22 pm
  • Thanks to all of the on, and off-list feedback I've received over the last month, I've realized I've been missing out on quite a bit. I tend to read past the finer points that people refer to. For ...
    Steve BertrandSteve Bertrand
    Jul 18, 2009 at 5:03 pm
    Jul 19, 2009 at 7:29 pm
  • Hi, I was reading Higher Order Perl[1] last night and, dishearteningly, got stuck on chapter one. Mark Dominus offers the following as a binary string conversion example of how recursion can work. ...
    DermotDermot
    Jul 10, 2009 at 8:26 am
    Jul 10, 2009 at 2:21 pm
  • Hi, When I got a word list, I want it to be sorted with special order. for example, I got this array: ("dog","is","a","there"); I want the sorted result is: ("there","is","a","dog"); How to code it? ...
    Sys admSys adm
    Jul 24, 2009 at 4:18 am
    Jul 24, 2009 at 4:34 pm
  • I'm currently working on a field value validation system. It takes in a custom data type, and then runs each key through a switch statement and validates the value. As I add new data types, I run the ...
    Steve BertrandSteve Bertrand
    Jul 21, 2009 at 1:59 pm
    Jul 22, 2009 at 1:13 am
  • Hello, I almost have this but cannot figure out why its not showing the data, right now it knows how many entries im putting in because it spits out that number of rows. I am getting my data from ...
    ScottScott
    Jul 10, 2009 at 9:19 pm
    Jul 11, 2009 at 1:44 am
  • Dear User! I want to get all telephone and mobile number from a string and save into a variable. Here is my example what i am doing. #!/usr/bin/perl $str = "This is my string my mobile number is ...
    Umar DrazUmar Draz
    Jul 9, 2009 at 7:18 pm
    Jul 10, 2009 at 8:12 pm
  • Hi everyone, I've got a couple of simple questions. First, I know that the below line is not correct, but instead of having someone correct it, I'd rather learn more about the Perl debugger, and the ...
    Steve BertrandSteve Bertrand
    Jul 8, 2009 at 12:59 pm
    Jul 9, 2009 at 1:35 am
  • Hi all, As a part of one program I need to get the current working directory. So I get this using cwd(). I want to replace forward slash (/) by backslash (\) in the path which I get because I work on ...
    Sanket vaidyaSanket vaidya
    Jul 1, 2009 at 4:26 am
    Jul 1, 2009 at 7:49 am
  • Dear Members! I have a string $str = "Total Mobile HONDA Civic, EXI: model 2002, excellent condition, available for sale. My Phone # is. 042-6832797, My Cell. 0300-4459899, My Office Cell ...
    Umar DrazUmar Draz
    Jul 25, 2009 at 6:08 am
    Jul 25, 2009 at 1:46 pm
  • Hi All, I need to used some perl code in k and C shell. But it is giving me bad substitution. Same code works fine in bash. Any help would be appreciated. perl -i -e '$re=q~'${1//~/\\~}'~; print ...
    Mallya, Vaibhav UMallya, Vaibhav U
    Jul 22, 2009 at 2:26 pm
    Jul 24, 2009 at 4:10 am
  • Hello, I follow the steps on this link to install and use DBD::Sybase for MSSQL: http://www.perlmonks.org/?node_id=392385 But when configure I got: BLK api NOT available. Then make got: dbdimp.c:777: ...
    Jenn G.Jenn G.
    Jul 21, 2009 at 6:38 am
    Jul 22, 2009 at 2:40 am
  • Hi, I have the below commands in the script. `$swlist -l bundle -a revision -a architecture -s $t | $grep $n $log_our_depot`; `$swlist -l bundle -a revision -a architecture -s $t | $grep $n ...
    Rajini NaiduRajini Naidu
    Jul 14, 2009 at 9:41 am
    Jul 17, 2009 at 12:30 pm
  • Greetings All! I am stumped and hoping someone can help solve this mystery. It seems I have introduced a bug in my script while attempting to move from a simple duplicate file backup (using ...
    Jo for lists and groupsJo for lists and groups
    Jul 16, 2009 at 8:28 pm
    Jul 17, 2009 at 1:18 am
  • Hi All, For the disclaimers: I am new to Perl[as I was some 7 months back :) ] and to get things rolling, I know just a bit of it. Hence the question, might appear a bit, unpolished. Can anyone who ...
    Soham DasSoham Das
    Jul 11, 2009 at 1:01 pm
    Jul 16, 2009 at 7:25 pm
  • Hello, From the code below: eval { local $SIG{ALRM} = sub { die "TIMEOUT\n" }; alarm($seconds); ... code to execute with timeout here ... alarm(0); # cancel alarm (if code ran fast) }; alarm(0); # ...
    Jenn G.Jenn G.
    Jul 14, 2009 at 2:57 am
    Jul 14, 2009 at 3:20 pm
  • Hi people. Is the order of results from a join() operation guaranteed ( assuming my array doesn't change, of course )? Dan
    DanDan
    Jul 12, 2009 at 8:31 am
    Jul 13, 2009 at 3:50 am
  • Hello everybody, I have two lists and I want to merge them like this: element 1 of list A, element 1 of list B, A2, B2, A3, B3, etc. I need this to create a sequence of key/value for an anonymous ...
    Matteo RivaMatteo Riva
    Jul 10, 2009 at 6:39 pm
    Jul 11, 2009 at 7:28 am
  • Hi, I need to edit a config file using perl cgi script. i.e., Search with the 'key' string and edit the 'value'. For eg: below is what I have in the config file "configfile.cfg". Key1=OldValue1 ...
    Alpesh NaikAlpesh Naik
    Jul 9, 2009 at 9:34 am
    Jul 9, 2009 at 3:11 pm
  • Hi, I am trying to use the '-e' filetest operator and encountered some wired behavior. I have a tar.gz file which is around 2.6 G and this is the code...Tar.gz file is in the same directory where ...
    Anu PAnu P
    Jul 8, 2009 at 11:34 am
    Jul 9, 2009 at 8:45 am
  • Greetings; I have a file of 100+ records like the following. I hope the line wrap doesn't mess things up too much. I have inserted | where I want to split them and indicated by <--($n)-- below the ...
    Dennis G. WicksDennis G. Wicks
    Jul 3, 2009 at 10:40 pm
    Jul 6, 2009 at 3:31 pm
  • Hi all, I've been toying with different techniques in how to make this code more compact. I have a few sanity checks like this, but against different incoming fields. The problem I have, is that I ...
    Steve BertrandSteve Bertrand
    Jul 2, 2009 at 11:46 pm
    Jul 3, 2009 at 2:19 am
  • Patrick DuprePatrick Dupre
    Jul 30, 2009 at 11:28 pm
    Jul 31, 2009 at 12:24 am
  • Hello, I've to cut off parts of an url like '/something_variable_1/something_constant/something_variable_2/something_variable_3/filename' The result should be 'something_variable_3/filename' To cut ...
    Peter-mailboxPeter-mailbox
    Jul 20, 2009 at 8:52 am
    Jul 22, 2009 at 4:48 pm
  • This isn't exactly on-topic, but maybe someone can help me with this problem. I need to execute a Perl script on the server from my HTML. I found examples of running a script in the browser and I ...
    Chuck CrislerChuck Crisler
    Jul 17, 2009 at 12:49 am
    Jul 17, 2009 at 4:28 am
  • hi guys i am very new to perl . i want to learn this language but i dont know where to sart and what to do. please enlighten me Love Cricket? Check out live scores, photos, video highlights and more. ...
    Shridhar kyrlageriShridhar kyrlageri
    Jul 15, 2009 at 12:58 pm
    Jul 15, 2009 at 2:14 pm
  • Hi list memebers. I'm new here and I'm interested in learning about Perl. I've managed to get some programs together but have a lot to learn. May I put a question to the experts? Suppose I have a ...
    SteveSteve
    Jul 10, 2009 at 7:37 pm
    Jul 11, 2009 at 6:29 am
  • I'm trying to learn to develop Perl modules in an effort to have clean directory structure and more reusable code. I'm hitting a little snag in my test code that I don't quite understand. I'm hoping ...
    Travis ThornhillTravis Thornhill
    Jul 10, 2009 at 4:59 am
    Jul 10, 2009 at 11:51 am
  • Hi all, I am trying to edit the text file using perl script. i want to replace a particular text of file with new text. but the problem is that the new text appeared at end of file; How can i solve ...
    Alpesh NaikAlpesh Naik
    Jul 7, 2009 at 6:25 am
    Jul 7, 2009 at 9:07 am
  • Hello there, I'm a biologist and I'm trying to start using bioperl for bioinformatic purposese but I've never programmed. Could you suggest me something to read to start from 0 level? In the ...
    Emanuele OsimoEmanuele Osimo
    Jul 6, 2009 at 10:20 pm
    Jul 7, 2009 at 1:45 am
  • Whenever I have to reboot ( Windows XP Sp2 ), which I try to keep to a minimum, it resets the power options. I have no control of that, but I can also go in a set to what I want it to be. ...
    Wagner, David --- Senior Programmer Analyst --- CFSWagner, David --- Senior Programmer Analyst --- CFS
    Jul 27, 2009 at 9:14 pm
    Aug 6, 2009 at 5:06 pm
  • I am using Perl 5.8.x, Windows XP SP2 and Novell GroupWise email client. I have written a program to send an email which contains HTML. Issue is that in the email body the 'body' shows up as HTML ...
    Tony EspositoTony Esposito
    Jul 31, 2009 at 9:21 pm
    Jul 31, 2009 at 10:06 pm
  • I'm a little lost even what to look for to do this. With a variable like this: $var = 'American Express offers individuals online access to its world-class Card, Financial, and Travel services, ...
    Harry PutnamHarry Putnam
    Jul 26, 2009 at 9:37 pm
    Jul 26, 2009 at 10:23 pm
  • Alok AlanAlok Alan
    Jul 23, 2009 at 8:16 pm
    Jul 24, 2009 at 4:52 pm
Group Navigation
period‹ prev | Jul 2009 | next ›
Group Overview
groupbeginners @
categoriesperl
discussions85
posts428
users91
websiteperl.org

91 users for July 2009

Steve Bertrand: 50 posts Chas. Owens: 45 posts Shawn H. Corey: 42 posts John W. Krahn: 31 posts Uri Guttman: 21 posts Jenn G.: 16 posts Octavian Rasnita: 12 posts Dermot: 11 posts Thomas Bätzler: 10 posts David Christensen: 9 posts Eric Veith: 8 posts Jim Gibson: 8 posts Harry Putnam: 7 posts Amit Saxena: 6 posts Jo for lists and groups: 6 posts Wagner, David --- Senior Programmer Analyst --- CFS: 6 posts Gurunandan R. Bhat: 5 posts Bryan R Harris: 4 posts Dan: 4 posts Meghanand Acharekar: 4 posts
show more
Archives