Re: form generator Perl... (The Holy Grail)

2008-10-22 Thread Wiggins d'Anconia
Pat Rice wrote: > Hi all > I'm wondering whats the best tool (preferably) open source, To use to > generate HTML forms in Perl that I can link in to a database after, > with optimistically code that is generated in a readable way. > > The holy grail would be: > - type out the form names for each

Re: Perl Newbie

2004-03-08 Thread Wiggins d'Anconia
James Edward Gray II wrote: On Feb 28, 2004, at 1:24 PM, R. Joseph Newton wrote: Rob Dixon wrote: David Le Blanc wrote: Actually, I'd better apologise for calling RPC::p* secure, simple, or well documented, before anyone comes at me with a knife :-( You won't feel a thing. Trust me: I'm an ana

OT: Re: subroutine definitions

2004-03-08 Thread Wiggins d'Anconia
Andrew Gaffney wrote: [snip] Really, I'm the only user of my code. I don't expect to get replaced anytime soon as my boss also doubles as my father ;) Besides, I certaintly don't want to make things easier for my replacement (if there ever is one). Sorry for the old post, but this last senten

Re: Forking

2004-03-08 Thread Wiggins d'Anconia
Bob Showalter wrote: Price, Jason wrote: Hmm...I guess that's the majority of the script. :) I can follow what it does, but I'm not entirely sure why it does it. Also, is there any way I can self-contain the output from each child process? You can use a separate pipe for each child, but now y

Re: chown-ing symlink

2004-03-14 Thread Wiggins d'Anconia
Ohad Ohad wrote: chown seems to be able only to follow links and change the destination. Anyway to change the link itself, I wouldn't want to run system("chown -h $file") . . . I'm using various unix machine (Linux, SunOs etc.) Remove the link and re-create it. perldoc -f unlink perldoc -f sym

Re: chown-ing symlink

2004-03-14 Thread Wiggins d'Anconia
Paul Johnson wrote: On Sun, Mar 14, 2004 at 06:20:21PM -0500, Wiggins d'Anconia wrote: Ohad Ohad wrote: chown seems to be able only to follow links and change the destination. Anyway to change the link itself, I wouldn't want to run system("chown -h $file") . . . I&

Re: Folder Clean-up

2004-03-15 Thread Wiggins d'Anconia
Randy W. Sims wrote: On 03/15/04 15:00, Wiggins d Anconia wrote: Not necessarily true. perldoc expects POD, which can be internal or external to a particular module's source code, it is possible to remove the documentation and still have the module installed. Slightly better would be to just invo

Re: Passing array references around

2004-03-16 Thread Wiggins d'Anconia
Robin Sheat wrote: Hey, I have a problem that I know is possible, because I have solved it before. However, the computer died and I lost my solution, and can't work it out again :) What I want to do is pass a couple of array references into a function and have it modify the contents of the refer

Re: REQUEST_METHOD

2004-03-16 Thread Wiggins d'Anconia
Mike Ni wrote: Hey everyone, While tracing through the perl script file, I kept running into environment variable "REQUEST_METHOD". Which is a little suspect, because you should be using CGI.pm or something better (not just similar) to hide the wrangling of the REQUEST_METHOD, etc. I looked

Re: REQUEST_METHOD

2004-03-16 Thread Wiggins d'Anconia
Please bottom post... Mike Ni wrote: Thanks for the resoponse, It was written by a person who left already. Now, I need to find out how his code work. Do you happen to know where I can find out more about such %ENV? is there a web site or man page? I "google" "ww.apache.org", yet no luck. P

Re: print to MAIL help

2004-03-19 Thread Wiggins d'Anconia
Christopher Benson wrote: I'm wondering if there is a way where you can show the person's REAL name rather than just an email ID when sending an email from Perl. So here's a snip of what I have now... my $from_addr = "[EMAIL PROTECTED]"; open (MAIL, "|/usr/lib/sendmail -t"); print MAIL

Re: using DBI to form query with variables that have quotes

2004-03-20 Thread Wiggins d'Anconia
WC -Sx- Jones wrote: Andrew Gaffney wrote: INSERT INTO people VALUES(NULL, "Firstname", "Lastname", ""123 Anywhere Address"", ..."); INSERT INTO people VALUES(NULL, "Firstname", "Lastname", '123 O'Walley Street', ..."); See the problem? I can't use either quoting consistently due to the nature

Re: using DBI to form query with variables that have quotes

2004-03-20 Thread Wiggins d'Anconia
Andrew Gaffney wrote: WC -Sx- Jones wrote: Andrew Gaffney wrote: INSERT INTO people VALUES(NULL, "Firstname", "Lastname", ""123 Anywhere Address"", ..."); INSERT INTO people VALUES(NULL, "Firstname", "Lastname", '123 O'Walley Street', ..."); See the problem? I can't use either quoting consiste

Re: Locatiing Self-Installed Modules

2004-03-22 Thread Wiggins d'Anconia
Ron Goral wrote: Hello - I have a series of scripts and modules that I will self install, creating directories within the cgi-bin directory. The structure looks like this: |-- Base cgi-bin -- DsgnGrp --| |-- Utilities DsgnGrp contains the scri

Re: File writing

2004-03-26 Thread Wiggins d'Anconia
Joseph Ruffino wrote: Hi, I'm trying to create file using data enterd from a webpage. In my previous program, I used the format command to write a recors. Is there another way to do that I can't find? How do you mean? Is it a specific type of file? I assume (hope) you don't mean: perldoc

Re: hash

2004-03-29 Thread Wiggins d'Anconia
[EMAIL PROTECTED] wrote: -Original Message- From: James Edward Gray II [mailto:[EMAIL PROTECTED] Sent: Monday, March 29, 2004 3:06 PM To: ewalker Cc: [EMAIL PROTECTED] Subject: Re: hash On Mar 29, 2004, at 4:03 PM, [EMAIL PROTECTED] wrote: any ideas on how I can access say all the values

Re: Parsing the hyperlink?

2004-03-29 Thread Wiggins d'Anconia
Ron B wrote: I'm running my own version of bulletinboard and I have a little problem with hyperlinks. I'd like to make them really work. So if posted message includes http://blaablaablaa it would be a hyeprlink when reader opens the message. Messages are stored in .html files so it's quite easy

Re: more on warn .. is next necessary

2004-03-29 Thread Wiggins d'Anconia
Harry Putnam wrote: "John W. Krahn" <[EMAIL PROTECTED]> writes: If so, how do I let the `next' know that open has failed? That is, how do I test exit status of open function? open() returns true on success and undef (false) when it fails. Is it just as in shell programing ($?)? No. ok, then

Re: Can anyone help

2004-04-01 Thread Wiggins d'Anconia
Doug Guilding wrote: I am trying to get perl scripts working on a win2k server - does anyone have any good ideas. My ISP say that they "cannot support the use of web scripts" However they have told me the path to perl and sendmail. /usr/bin/perl /usr/sbin/sendmail The problem is I can't get a

Re: Hash ref's of hash's

2004-04-01 Thread Wiggins d'Anconia
[EMAIL PROTECTED] wrote: Hi all, I am trying to setup a hash who's values are referance to hash's. Data structure should look like this hash 1: setting 1 setting 2 2: setting 1 setting 2 This does not look like a HoH, but a HoA. I

Re: using strict

2004-04-01 Thread Wiggins d'Anconia
[EMAIL PROTECTED] wrote: Does the following turn off strict for a vars? no strict "vars"; Could you also turn off strict for other things besides vars, refs and subs? Say for a subroutine (for example). Pragma are block/file scoped similar to a lexical. To answer your question below, yes you c

Re: illegal octal digit '8'?

2004-04-02 Thread Wiggins d'Anconia
Charlotte Hee wrote: In my perl script I use the unix command 'date' to make a time stamp because eventually I want the date format to be DD-MON-, where DD is the number of the day (1-31), MON is the 3-char spelling of month (i.e. JAN), and is the 4-digit year. In this perl script I'm just

Re: illegal octal digit '8'?

2004-04-02 Thread Wiggins d'Anconia
John W. Krahn wrote: Wiggins D'Anconia wrote: So a Perlish way to do this, my (@months) = ('jan','feb','mar','apr','may','jun','jul','aug','sep','oct','nov','dec&#

Re: Passing file handles into modules

2004-04-04 Thread Wiggins d'Anconia
[EMAIL PROTECTED] wrote: Hey! I'm having some trouble passing a file handle from a script into a module as a function parameter. I'm passing it as a variable. The program says that I'm trying to use an un-opened file handle. Does anybody have any thoughts on this? Thanks, Lewis AS Bassett S

Re: cleaning up references properly

2004-04-12 Thread Wiggins d'Anconia
JupiterHost.Net wrote: Wiggins d Anconia wrote: Still not convinced you need any such idiom... I'm not either, but they are not, believe it or not, "multiple executions of a non-persistent script" they are multiple executions of a persistent script that remains persistent between executi

Re: Dynamic Execution question

2004-04-14 Thread Wiggins d'Anconia
Ellinghaus, Lance wrote: Hello all! I am new to Perl and have a question. I have to see about converting my Python code to Perl for the project I am working on and I need to know how to go about doing a very specific part of my code. I am Python beginner so if I miss something in the code below be

Re: Dynamic Execution question

2004-04-14 Thread Wiggins d'Anconia
Wiggins d'Anconia wrote: perldoc -f UNIVERSAL UNIVERSAL is not a function, drop the 'f' in the above. perldoc UNIVERSAL Sorry for the noise... http://danconia.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://lear

Re: s/// w/o RE

2004-04-14 Thread Wiggins d'Anconia
Bryan Harris wrote: perldoc perlre for more: "\Q quote (disable) pattern metacharacters till \E" Wow, there really are wizards here! After 2+ years of perl, I still learn stuff almost every day. I'd never heard of this one before... So do I after 7 years ;-)... http://danconia.org -- To un

Re: command line options

2004-04-16 Thread Wiggins d'Anconia
[EMAIL PROTECTED] wrote: Hey guys anyone have any examples of how to check options with the Get::Long module. Here is what I used to get the options. I need examples of how to check to see if they entered the correct things or not. &GetOptions('h|usage|help|info', 'p=s', 's=s', 't=s'); I posted a

Re: Password Changer and rexec help

2004-04-21 Thread Wiggins d'Anconia
WC -Sx- Jones wrote: NandKishore.Sagi wrote: Also I am looking for a perl module which can help me to logon onto different boxes and execute a given script .Something more like rexec. wrap-up some ssh commands inside Perl. Yikes, if you are going to go that route then consider Net::SSH:

Re: simple eval $e; issue

2004-04-21 Thread Wiggins d'Anconia
JupiterHost.Net wrote: WC -Sx- Jones wrote: JupiterHost.Net wrote: Will work whether I do the require or use way require doesn't let you specify what to EXPORT though which is one of the goals of this funtion... use does import the module's name *and* does the EXPORT symbols also *if* i

Re: Password Changer and rexec help

2004-04-21 Thread Wiggins d'Anconia
WC -Sx- Jones wrote: Wiggins d'Anconia wrote: wrap-up some ssh commands inside Perl. Yikes, if you are going to go that route then consider Net::SSH::Perl, has worked well for me in the past, once you get through the dependency installation. Why yikes? There is another language c

Re: check my split

2004-05-13 Thread Wiggins d'Anconia
rmck wrote: Hello, This code below works. But I am wondering if it can be made more efficient: while () { my $sport = (split(/\s/,$_))[8]; my $sdport = (split(/\s/,$_))[10]; next if $sport =~ /\D/; next if $dport =~ /\D/; if ($sport =~ /^(20|21|22|25|53|80|109|110|123|137|161|443)$/ || $dp

Re: run function inside script on internal schedule?

2004-04-25 Thread Wiggins d'Anconia
JupiterHost.Net wrote: WC -Sx- Jones wrote: Why do Perl programmers want to re-invent the wheel? JupiterHost.Net wrote: Assume I have a script that will run for 10 seconds. Is it possible to have a function executed every 2 seconds? I know it sounds weird but how would one go about somethin

Re: Setup Forwarding

2004-05-02 Thread Wiggins d'Anconia
Mike Blezien wrote: Hello, Need to setup a script to read incoming email that will be addressed something like this: [EMAIL PROTECTED] these are not actual POP account or aliases, but created within a membership system that will create a email address with their username and "mydomain.com" Se

Re: simple include

2004-05-04 Thread Wiggins d'Anconia
Please bottom post J Adam Latham wrote: Try removing "my" from all the variables in your module ... You're privatizing them to your module thereby excluding them from your external program ... At least that's my guess! :^) Hopefully you could at least suggest to 'our' them instead of 'my', s

Re: Read From Socket

2004-05-04 Thread Wiggins d'Anconia
Roman Baeriswyl wrote: Hey Guys I'm trying to read an answer from an SMTP server via socket. I'm writing a function wich returns everything till it finds a line which doesn't begin with 3 digits and a - (/^[\d]{3}-/), but returns this line,too. Best I could get till now, is the function below. My q

Re: Perl Build

2004-05-04 Thread Wiggins d'Anconia
Karl wrote: Hi again, I would like to build an unthreaded versions of Perl v5.8.1 for Mandrake 9.2 using a src.rpm and install as /usr/local/bin/perl. I would imaging I need to remove the USE_ITHREADS compile time option. Since I'm new at doing this I don't know where to start. That sounds abou

Re: Web based admin using PERL and CGI

2004-05-04 Thread Wiggins d'Anconia
[EMAIL PROTECTED] wrote: Hey all, I am thinking I'd like to "browserize" a number of simple functions, please correct me if I understand what I'd need to do. Lets say I want to run a pkginfo command on my web server, and return teh results to a browser, I'd need to call a ksh script from a CGI m

Re: removing element of array

2004-05-14 Thread Wiggins d'Anconia
Andrew Gaffney wrote: I have an array that I need to remove an element from the middle of. Is there a one-liner way to do this? perldoc -f delete perldoc -f splice Helps? http://danconia.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Determine Email Headers

2004-05-24 Thread Wiggins d'Anconia
Please bottom post... Mike Blezien wrote: This is what comes in the body of the email message if it's not plain text message and need to pass the email with the right headers so it's displayed correctly when received: Right, but the message itself is MIME and multipart. So I don't understand fro

Re: Determine Email Headers

2004-05-24 Thread Wiggins d'Anconia
Mike Blezien wrote: Read below [snip] Basically what we have is a piped forwarding script that when a "fake" email address, IE "[EMAIL PROTECTED]" is recieved it's piped to script: #!/usr/bin/perl ## use Mail::Audit; use DBI; use st

Re: statistic solving

2004-05-26 Thread Wiggins d'Anconia
Boon Chong Ang wrote: Hi, If I need to solve normal statistic problem using perl, any cpan module that you all would recommend? How about performing least square and least square error statistical analysis as well. http://search.cpan.org/modlist/Data_and_Data_Types Easiest is to just search CPAN

Re: Perldoc advice

2004-06-05 Thread Wiggins d'Anconia
Brian Volk wrote: Hi All, which perldoc (s) should I read if I'm going to be writing a program using regular expression? Substitutions - case shifting. I have a folder which contains thousands of text files. (short desc. for image files). I copied and pasted most of the short descriptions so some

Re: how to check for dots in filename

2004-06-07 Thread Wiggins d'Anconia
Roberto Etcheverry wrote: hi all, can anyone tel me how to look for files which conatain dotsin it. i.e file1.txt file2.txt how to check for dots in filename using regular expression. is it correct my $ty=polica.op if($ty =m/ (.*)\.o/) The regular expresion should be /(.*)\.o/. Otherwise you

Re: XML::Simple

2004-06-07 Thread Wiggins d'Anconia
Mark Goland wrote: Hello all, I am trying to play with simple XML. I hace reated a file, and am trying to read it in using XML::Simple and write it out, but with no luck :O(. Can someone point me to the correct error. Thanks in Advance, Mark G CODE: #!PERl -w use XML::Simple; use Data::Dumper;

Re: if -s clause

2004-06-07 Thread Wiggins d'Anconia
Please bottom post. [EMAIL PROTECTED] wrote: I originally had if ( -s OUT ) { print "file is greater than 0 bytes \n"; } so is this what I want to use? Because I just ran it and it is still not printing this string. Well theoretically that might work since the def in the docs indicates

Re: XML::DOM::Parser question !

2004-06-07 Thread Wiggins d'Anconia
Ravinder Arepally wrote: All, I am trying to parse a XML file and change an element value. Below is code of mine where I am doing this. However, setAttribute doesn't work and it doesn't give any error message too. I spent enough time and doesn't make sense to me. I get right value using getAttri

Re: XML::Simple

2004-06-07 Thread Wiggins d'Anconia
t of guess and test until it produces exactly what I want. Generally messing with ForceArray and KeyAttr has gotten me where I needed to go. You might re-examine the docs on these particular attributes. Helps? http://danconia.org - Original Message - From: "Wiggins d'Anconia&qu

Re: XML::DOM::Parser question !

2004-06-07 Thread Wiggins d'Anconia
u need to write it back out. http://danconia.org -Original Message- From: Wiggins d'Anconia [mailto:[EMAIL PROTECTED] Sent: Monday, June 07, 2004 8:09 PM To: Ravinder Arepally Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: XML::DOM::Parser question ! Ravinder Arepally wrote:

Re: Time

2004-06-15 Thread Wiggins d'Anconia
Your script appears to break every 4th year http://danconia.org Chris Welch wrote: The attached text file is an example of a calendar I've used for CGI purposes (I should point out this is not entirely my script, it's modified by me but the original was by a friend of mine.) -Original Mess

Re: a way to make this more secured and better written?

2004-06-15 Thread Wiggins d'Anconia
Please bottom post and group reply so everyone can help and be helped, and you run less risk of being accidentally ignored... Jason Gray wrote: What do you exactly mean by passing $q as an argument? In general you want to avoid the use of globals, and "encapsulate" your subroutines such that the

Re: sub naming conventions

2004-07-13 Thread Wiggins d'Anconia
perl.org wrote: On Tue, 13 Jul 2004 18:57:57 -0500, James Edward Gray II wrote perldoc perlstyle Thanks. I had done perldoc perl | find /i "nam" but didn't see anything that looked relevant. The people that maintain Perl apparently have a very different mindset than I do... Which particular styl

Re: passing hashes form packages

2004-07-28 Thread Wiggins d'Anconia
bzzt wrote: Hi, I am trying to pass a hash from a package to my script with the following. Can anyone tell me why it doesn't work? the_package.pm--- #!/usr/local/ActivePerl-5.6/bin/perl -w package the_package; require Exporter; @ISA = qw(Exporter); @EXPORT = qw(%exp_hash); use WWW::

Re: Malloc problem Perl

2004-08-04 Thread Wiggins d'Anconia
Julianno Sambatti wrote: Hi all, I have a perl code that reads a file into a list in an array of array. Then it rearranges each nested array in another format - 4 columns instead of 2 - by randomly picking an element of each array and reassembling another array. It's been working when the infil

Re: perl crashing at $image->Read (file=> \*ARGV);

2004-09-09 Thread Wiggins d'Anconia
Please bottom post Brian Volk wrote: Thank you Wiggins! I have changed everything that you suggested and I think I am much closer. However, I have run into an error w/ the Read line. foreach my $file (@files) { $image->Read (file=> $file) Bad filehandle: brian.jpg at C:/Program Files/PerlEd

Re: Time Trigger in perl.....

2004-09-16 Thread Wiggins d'Anconia
Roime bin Puniran wrote: I want to set a time that, when the program tringer catch that expected time, the program will run...how can i write it in perl..can anybody give a hint... Sorry, my english is not well... Thanks Check out the C function, it is specifically for this purpose. perldoc -f ala

Re: perl/cgi/file getting

2004-09-25 Thread Wiggins d'Anconia
Jeff Herbeck wrote: Hello, I am trying to start a "transloading" and webhosting company. This will allow users to login via apache .htaccess type authentication and then be able to put a url of a file into a form and the script will go get that file, download it to the webserver into their html d

Re: Logical order to read perldocs

2004-10-09 Thread Wiggins d'Anconia
Steve Bertrand wrote: I'm trying very hard to get a good grasp on OOP, references, complex data structures etc. I just ordered Learning Perl Objects, References and Modules from amazon.ca, and have been tredging through the perldoc documentation. After getting into a few of the pages, it appears as

Re: form posting

2004-10-18 Thread Wiggins d'Anconia
Adamiec, Larry wrote: I am still trying to post form data from a secure UNIX web server to an ASP script on a windows server. The following code works: The problem I having is this code requires me to specify each form field when I attempt to post to the ASP script. I would like to be able to gra

Re: Naming Convention?

2005-01-22 Thread Wiggins d'Anconia
Graeme St. Clair wrote: Is there any common convention governing names of variables defined in a 'require'd 'blah.pl'? I'd like to make use of such variables detectable to the naked eye in the scripts that 'require blah.pl'. Rgds, GStC. Well you should consider using C and making it a proper

Re: Dynamic Loading

2005-01-31 Thread Wiggins d'Anconia
[EMAIL PROTECTED] wrote: How do you check Perl 5.8.1 is configured for Dynamic Loading? Dan perl -V Helps? http://danconia.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: split delimiters query

2005-02-02 Thread Wiggins d'Anconia
mike wrote: Am I right in thinking that if you double quote the seperator in split the seperator is added to the array ie: @array3=split(/"\t/",$value4); would add \t to the end of @array3 while As you have written it above I get a syntax error: String found where operator expected at ./test.pl lin

Re: redirection

2005-02-02 Thread Wiggins d'Anconia
Octavian Rasnita wrote: Hi all, I want to redirect the browser to a certain page using: print "Location: http://$ENV{SERVER_NAME}$ENV{HTTP_REFERER}";; In this case you will need to add two new lines as well, to conclude the header, assuming this is the last line of the header. or $q->redirect("ht

Re: Modifying directory permission

2005-02-04 Thread Wiggins d'Anconia
Jenda Krynicky wrote: From: "Anish Kumar K." <[EMAIL PROTECTED]> Is there any way in perl I can modify the permission of a directory using perl scripts It never ceases to amaze me how often people forget to specify their operating system when asking apparently OS specific questions ... Jenda It

Re: Mail-Internet problem

2005-02-07 Thread Wiggins d'Anconia
Douglas Lentz wrote: Hello friends, I'm trying to get Mark Overmeer's Mail::Internet module to work on my system. Problem: I can't send mail using Mail::Internet's smtpsend method. Details: This is a Red Hat Linux box connecting to the internet over plain old dial-up PPP. I am using my ISP's SMT

Re: assistance requested with installation

2005-02-10 Thread Wiggins d'Anconia
Your question might fetch more results on the P5P list. Generally it should not be used for beginner questions, or even beginner installation questions, but HPUX is less often seen, and it is a relatively new Perl, so I don't think it would be considered OT there. http://danconia.org Adams, Mat

Re: write new file to same dir

2005-02-11 Thread Wiggins d'Anconia
Brian Volk wrote: Hi All, I'm having trouble w/ my script... I can open the dir, read the dir and even get the s/// to work I just don't know how to write the new file to a new dir. or the same dir for that matter... If someone could point me in the right direction I would really appr

Re: Compare file modification time

2005-02-12 Thread Wiggins d'Anconia
[EMAIL PROTECTED] wrote: How do I best compare mtime of several files. I have a script for making daily backups into a given directory. Now I want to modify it to delete old backups if the total exceed cetain number. The idea was to compare the mtime of all file to figure out old files to delete

Re: configuring apache

2005-02-12 Thread Wiggins d'Anconia
vishwas bhakit wrote: Dear Sirs, I don't know whether i should ask this query here or not. Because its not perl query its related apache configuration. But if I am right plz help me. I don't have any knowledge over configuring apache for web sites. First time I had tried to configure one web

Re: hash speed

2005-02-14 Thread Wiggins d'Anconia
Ken Gillett wrote: I have a script that creates a hash, up to several thousand key=>value pairs. Each value is a string that is created by adding to it repeatedly, maybe hundreds of times, each addition probably about 10 bytes. I can do this in (at least) 2 ways. One is to repeatedly concatenate

Re: Compare file modification time

2005-02-14 Thread Wiggins d'Anconia
Please bottom post Babale Fongo wrote: It was just an attempt to see how someone else may tackle this issue. I thought of sorting, but I wasn't sure it will do exactly what I expect. Here is what I've have so far: my $dir = "/mydir"; opendir(DH, "$dir") || die "Failed to open $dir: $!\n"; my $

Re: hash speed

2005-02-15 Thread Wiggins d'Anconia
4 Feb 2005, at 15:00, Wiggins d'Anconia wrote: Ken Gillett wrote: I have a script that creates a hash, up to several thousand key=>value pairs. Each value is a string that is created by adding to it repeatedly, maybe hundreds of times, each addition probably about 10 bytes. I can do this in

Re: Viewing XML

2005-02-16 Thread Wiggins d'Anconia
Mithun wrote: Hi people, When I try to view the content of an XML file using WML (as in after the appropriate changes in the headers made)-it gives me errors because the XML is not properly formed. In the file on which I'm working, there is a but no . When I view in the normal browser it displays

Installing Net::FTP on Solaris (was: Re: Effective Perl Programming - Still valid, dated 1998?)

2005-02-16 Thread Wiggins d'Anconia
Please start a new thread when sending an unrelated question, don't reply to a previous thread to prevent being ignored. Pablo Wolter wrote: Hi, I have a stupid question to you guys; I need to install Net::Ftp module on a solaris production machine and feeling insecure to screw up the system in

Re: 5.6.0 to 5.8.6 problems.

2005-02-16 Thread Wiggins d'Anconia
Richey wrote: I am trying to upgrade from Perl 5.6.0 to 5.8.6 on Slackware 7.1 becasue some of the Perl Modules that I am trying to install whine about 5.6.0 and they want atleast 5.6.1. Since this box is going live after I finish setting it up now is a better time to go ahead and upgrade to

Re: deep and shallow binding

2005-02-17 Thread Wiggins d'Anconia
Ajey Kulkarni wrote: Hi, Can any one explain me how perl treats this binding? - also i'm little confused about the binding rules for reference environments. Unless we use strict, i guess, the default scope is global - is this right? Any pointers,links will be highly appreciated regards -Ajey See if

Re: Undef value trouble

2005-02-18 Thread Wiggins d'Anconia
Lawrence Statton wrote: Hello there! As we know and as Larry Wall said in a Camel-book 0 in scalar variable is equal to undef. I have in my database PID columns with unique values. When I try to perform this column data by "while my $pid = $sth->fetchrow_array()" I lost one record because it has

Re: Passing an object to a subroutine via hash?

2005-02-21 Thread Wiggins d'Anconia
Chris wrote: Greetings, I don't know what the proper terminology is for what I want to do, so if somebody can tell me what it is, that would be great. Basically I have my core code, then lots of subroutines. Right now I pass data to subroutines via a "parameter" hash. How can I pass an object th

Re: DBM file or similar

2005-02-22 Thread Wiggins d'Anconia
Dermot Paikkos wrote: Hi, I am looking for a way to store firstname/surname/id values in a file. Currently I am using a flat file to store just the christian name and surname in the format: firstname|surname My problem is that the file is used to gain access a program and the users enter their

Re: Module Math::ODE?

2005-02-22 Thread Wiggins d'Anconia
Renqilong wrote: Hi all, Has anybody here ever used the module Math::ODE? I dont quite understand the examples from CPAN. Where can I learn more about this module? Thanks For modules this new and with such a small niche you might want to look at the source to see if you understand it better. What

Re: Editing config file entries in between brackets{ } Ex. define host{ hostname value... }

2005-02-22 Thread Wiggins d'Anconia
Harold Castro wrote: Hi, I'm editing a software(nagios)configuration files and I thought it would be much easier if I could just create a perl script to edit such files. Though I have very little ideas coming on how to accomplish this task. I need some tips for this one. The config file format is

Re: PDF Generation with PDF::API2 or similar

2005-02-22 Thread Wiggins d'Anconia
Gavin Henry wrote: Dear Gurus, What is the preferred way to generate PDF file? I have never done this before and PDF::API2 seems to look good on cpan, but I can't find any tutorials. Anyone got any tips? There was a good discussion of this topic on the Chicago PM list in September 2004: http://m

Re: DBM file or similar

2005-02-22 Thread Wiggins d'Anconia
Please bottom post, and group reply so that everyone can help and be helped. Dermot Paikkos wrote: More likely it's me that's confused... Perhaps I didn't give all the details in the earlier mail. The user will only enter their surname. The script would then search the file for a match. For those

Re: Take previous line after match?

2005-02-22 Thread Wiggins d'Anconia
Greg Jackson wrote: Please reference the example text at the bottom of this post. I am matching each heading (Severity, Status, Finding Details, and Manual Fix Procedures) and then placing the data that follows into an array...this part works fine. However, I need to get the line above "Severit

Re: problem in downoading file using get( ) of POP3

2005-02-23 Thread Wiggins d'Anconia
girish kelwalkar wrote: hello experts, I am writing one code which detect new coming mails from server and download it to file. I am showing you the portion of code. 1 for($l=1;$l<=$msg_id;$l++) 2 { 3 my $MsgContent = $pop3->top($l, 20); 4 open (CHEC

Re: Upgrading from Perl 5.6 to Perl 5.8

2005-02-24 Thread Wiggins d'Anconia
Chris Devers wrote: On Wed, 23 Feb 2005, Paul Ohashi wrote: [snip] Kind of like Java 1.4.5 being "Java Five", or whatever it is ... :-) Anyone on Solaris should be already :-)... Solaris 9 isn't that SunOS 5.9??? http://danconia.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman

Re: Listing a Windows file, getting creation date

2005-02-24 Thread Wiggins d'Anconia
Bret Goodfellow wrote: Hi all, I am very new to Perl. I have had assembler and Rexx experience on a mainframe. I would like to be able to use Perl to list a directory, get the propeties of the files (eg. date created), and keep the newest 3. The reason I want to do this is because I am running a

Re: Listing a Windows file, getting creation date

2005-02-24 Thread Wiggins d'Anconia
Please bottom post. And remember throwing a huge chunk of code at someone who is brand new probably isn't the best way for them to learn. *at least* explain what your code does, how, and why... http://danconia.org Manav Mathur wrote: use strict ; use warnings ; use File::find ; my %hash ; my %by

Re: Moving Directories containing files (something more tricky)

2005-02-24 Thread Wiggins d'Anconia
Bastian Angerstein wrote: Hello there, I have a tricky problem, I have some (alot) directories containing alot of files. I want to move the directory /xyz/123/ with all containing files to /xyz/abc/123. The source directory does not (or should not) contain subdirectories. Does anybody have somethi

Re: Calling Files automatically

2005-02-25 Thread Wiggins d'Anconia
Edward Wijaya wrote: Hi, How can I modify the early part of code below such that I don't have to manually key in the files this way: perl mycode.pl data1P.fa data1R.fa data2P.fa data2R.fa etc I.e. just by typing this will do: perl mycode.pl Thanks so much for your time beforehand. Based on the

Re: Request help from a Perl learner

2005-02-28 Thread Wiggins d'Anconia
Rocky Chett wrote: Hi list, Hello and welcome... I am a database administrator(oracle) wanting to learn Perl for scripting and administrative purposes. Ok. Can you please suggest some book(s)/sites for learning Perl. How long does it take to learn Perl, given that I have maintained some Perl sc

Re: Perl and Semantic web

2005-02-28 Thread Wiggins d'Anconia
Cristi Ocolisan wrote: Hello to all, My question is probably a rhetorical one... The company I work for, received a request for a system based on "semantic web" and "Virtual distributed databases". As I searched the net I understood the basic concept of semantic web and virtual distributed da

Re: www.perldoc.com

2005-02-28 Thread Wiggins d'Anconia
Gavin Henry wrote: Is anyone having trouble getting to this domain? I can never get a connection. Yes, it has been flaky for at least the past couple of weeks. Not sure who runs perldoc.com, Ask do you? http://danconia.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mai

Re: problem with instalaion of DBD::mysql

2005-02-28 Thread Wiggins d'Anconia
gowthaman ramasamy wrote: Dear list, i have a problem installing DBD::mysql module. My built is FC3 on a P4 machine. i installed mysql database via Mysql-serever-5.1.10-0.i386.rpm also via a binary version of mysql-standard-4.1.10-pc-linux-gnu-i686. both the mysql servers are fine. And i could inst

Re: redefining Net::Telnet "escape" character

2005-02-28 Thread Wiggins d'Anconia
Joe Mecklin wrote: ok, per the instructions, binmode only converts CR LF to \n, which is not what i'm looking for. Out of curiousity isn't the escape character used for client side handling? In this case why would you need to worry about the escape character, as you can drop to a subshell from w

Re: return code

2005-02-28 Thread Wiggins d'Anconia
Please bottom post... [EMAIL PROTECTED] wrote: ok so $? states CHILD_ERROR or last status returned by the last ` ` command. $! states yields the current value of errno in shell if I say it will give me a true or false value. cat /tmp/foo if [ $? -eq 0 ] then echo yes command succeeded els

Re: Verify that a directory exists.

2005-02-28 Thread Wiggins d'Anconia
Carlos Mantero wrote: El lun, 28-02-2005 a las 14:49 +0300, Vladimir D Belousov escribió: 1) if (-d $DIR_NAME) { directory exists }; 2) if((lstat($DIR_NAME))[1] & 004) { directory exists and it is the real directory (not the symbolic link) }else{ ... No such direc

Re: return code

2005-02-28 Thread Wiggins d'Anconia
[EMAIL PROTECTED] wrote: It is difficult for me to bottom post as I am using Lnotes. Sorry. See previous rants about this. ok so yes In general, I thought: SHELL 0= true Perl 0 = false SHELL 1 = false Perl 1 = true what do you mean "non zero is false in this context." b/c in general I thoug

Re: return code

2005-02-28 Thread Wiggins d'Anconia
[EMAIL PROTECTED] wrote: $exit_value = $? >> 8 $signal_num = $? & 127; $dumped_core = $? & 128; ok this helps, thanks! But, in my small block of code I am using $? >> 8 as so system ("cat /tmp/used"); # /tmp/used does not exist so this should return 0 for false in Perl and 1 fal

  1   2   3   4   5   6   7   8   >