Re: factorial function

2003-11-27 Thread Robert Brown
Shawn O'Donnell writes: > >Does anyone have any suggestions on how to create an array to hold the value > >of 1000 factorial? > > Do you mean 1000! > > That's a super-sized number--something like 10-to-the-2566th power, > if I am using Sterling's approximation correctly. > > I don't kn

Re: Is slicing web images possible with perl?

2003-11-27 Thread Motherofperls
In a message dated 11/26/03 6:28:54 AM Pacific Standard Time, [EMAIL PROTECTED] writes: BTW we'd all /really/ like to know who you are. This isn't a costume party :) I'm not sure what you meant by the above statement Rob. I'm guessing it goes with your signature. I think I will try GD. Is it

Re: problems with case insensitive tr/// regexp

2003-11-27 Thread John W. Krahn
Dan Anderson wrote: > > I'm trying to create a script to remove all font tags from an > HTML documents. I created a regular expression like this: perldoc -q "How do I remove HTML from a string" > ,[ working code > | use strict; > | use warnings; > | my $foo =" whe"; > | $foo =

Re: command line interface handling asynchronicity

2003-11-27 Thread John W. Krahn
Philipp Traeder wrote: > > > It is pretty simple, the perlipc man page has some good examples, but it > > is basically like this: > > > > elsif ( $cmd eq 'long_action' ) { > > defined( my $pid = fork ) or die "Cannot fork: $!"; > > unless ( $pid ) { > > # execute th

Re: problems with case insensitive tr/// regexp

2003-11-27 Thread Daniel Staal
--As off Thursday, November 27, 2003 7:05 PM -0600, Perl Newbies is alleged to have said: --As off Thursday, November 27, 2003 7:42 PM -0500, Dan Anderson is alleged to have said: So what am I doing wrong and how do I make a case insensitive tr/// regexp? Thanks for your help, --As for t

Re: problems with case insensitive tr/// regexp

2003-11-27 Thread Daniel Staal
--As off Thursday, November 27, 2003 7:42 PM -0500, Dan Anderson is alleged to have said: So what am I doing wrong and how do I make a case insensitive tr/// regexp? Thanks for your help, --As for the rest, it is mine. You can't make a case insensitive tr/// regexp: tr/// doesn't do re

problems with case insensitive tr/// regexp

2003-11-27 Thread Dan Anderson
I'm trying to create a script to remove all font tags from an HTML documents. I created a regular expression like this: ,[ working code | use strict; | use warnings; | my $foo =" whe"; | $foo =~ tr/\<.*font.*\>//d; | print $foo, "\n"; `--- Bu

Re: command line interface handling asynchronicity

2003-11-27 Thread drieux
On Thursday, Nov 27, 2003, at 14:10 US/Pacific, Philipp Traeder wrote: [..] The danger of primates banging on keyboards is - of course - always existent and quite high, but in this case I would settle for a first version that would be usable by more or less normal beings of the species homo [EMAIL

Re: command line interface handling asynchronicity

2003-11-27 Thread Philipp Traeder
> Not related to your question but, have you thought of using a dispatch > table instead? > > sub help { > # process help > } > > sub long_action { > # process long_action > } > > my %process = ( > help=> \&help, > long_action => \&long_action, > simple_cmd =

Re: command line interface handling asynchronicity

2003-11-27 Thread Philipp Traeder
On Thu, 2003-11-27 at 21:37, drieux wrote: > > On Thursday, Nov 27, 2003, at 09:58 US/Pacific, Douglas Lentz wrote: > > > Re: (A) What's the best way for the child to inform the parent that > > it's done?. > > > Given that his question (A) is about 'informing' > the parent that it is finished, h

Re: command line interface handling asynchronicity

2003-11-27 Thread John W. Krahn
Philipp Traeder wrote: > > Good morning everybody, Hello, > I am writing a small console application, allowing the user to perform > some actions via a shell-like interface. The basics of this were rather > easy, and with the help of some very nice CPAN modules (i.e. > Base::Shell), I have got t

Re: command line interface handling asynchronicity

2003-11-27 Thread drieux
On Thursday, Nov 27, 2003, at 09:58 US/Pacific, Douglas Lentz wrote: Philipp Traeder wrote: Good morning everybody, [..] # ... elsif ($cmd eq 'long_action') { if (!fork) { # execute the action in the child process sleep 10; # TODO: noti

Re: Count the no of times a script is called

2003-11-27 Thread John W. Krahn
Zentara wrote: > > On Wed, 26 Nov 2003 15:50:57 -0500, [EMAIL PROTECTED] (Amit Phatak) > wrote: > > > >I have a fortran program calling a perl script for various parsing > >activities for multiple number of times. I wish to increment a variable by > >1 in the PERL SCRIPT (not the fortran program)

Re: problem using bash variables with command-line perl in bash script

2003-11-27 Thread John W. Krahn
Marcus Claesson wrote: > > Hi! Hello, > I have a problem with variables when using command-line perl in a bash > script. The script should update a date (in 2003-10-10 form) if the > argument, which is a file name, exists on the same line in the file > updated_files.txt. > > #!/bin/bash > FILEN

Re: problem using bash variables with command-line perl in bash script

2003-11-27 Thread drieux
On Thursday, Nov 27, 2003, at 10:04 US/Pacific, Marcus Claesson wrote: Hi! I have a problem with variables when using command-line perl in a bash script. The script should update a date (in 2003-10-10 form) if the argument, which is a file name, exists on the same line in the file updated_files.t

Re: perl interactive system commands

2003-11-27 Thread drieux
On Monday, Dec 4, 1995, at 15:32 US/Pacific, rhlinux wrote: [..] quote: --- --- system(passwd username ) --- --- but this takes the password from th

Re: command line interface handling asynchronicity

2003-11-27 Thread Douglas Lentz
Philipp Traeder wrote: Good morning everybody, I am writing a small console application, allowing the user to perform some actions via a shell-like interface. The basics of this were rather easy, and with the help of some very nice CPAN modules (i.e. Base::Shell), I have got tab-completion, a hel

problem using bash variables with command-line perl in bash script

2003-11-27 Thread Marcus Claesson
Hi! I have a problem with variables when using command-line perl in a bash script. The script should update a date (in 2003-10-10 form) if the argument, which is a file name, exists on the same line in the file updated_files.txt. #!/bin/bash FILENAME=$1 UPDATED=`date +%F` echo echo "perl -wne 'i

Re: Sockets and Daemonizing - was Re: Count the no of times a script is called

2003-11-27 Thread drieux
On Thursday, Nov 27, 2003, at 01:26 US/Pacific, Tom Kinzer wrote: Not sure, I'm not an admin by trade, but I was actually referring to the fact that some admins assume that user Perl processes that don't die, are doing so unintentionally. Ah! an interesting take. Having been one of those folks who

Re: perl interactive system commands

2003-11-27 Thread Andrew Gaffney
rhlinux wrote: elslam 3alikom, i wanna run an interactive system command through my program for example i wanna add a user with its password that is given in the program not by the user, do any one here have any idea how can i do so in perl i tried quote: -

Re: Glob and space in directory name

2003-11-27 Thread Rob Dixon
David --- Senior Programmer Analyst --- Wgo Wagner wrote: > > > Note: I went into File::Glob and it gives the following: > > Since v5.6.0, Perl's CORE::glob() is implemented in terms of > bsd_glob(). [...] Due to historical reasons, CORE::glob() will also > split its argument on whitespace, treatin

perl interactive system commands

2003-11-27 Thread rhlinux
elslam 3alikom, i wanna run an interactive system command through my program for example i wanna add a user with its password that is given in the program not by the user, do any one here have any idea how can i do so in perl i tried quote: --

RE: rendering html from perl

2003-11-27 Thread NYIMI Jose (BMB)
Nice to read ! http://perl.apache.org/docs/tutorials/tmpl/comparison/comparison.html José. DISCLAIMER "This e-mail and any attachment thereto may contain information which is confidential and/or protected by intellectual property rights and are intended for the sole use of the rec

RE: Sockets and Daemonizing - was Re: Count the no of times a script is called

2003-11-27 Thread Tom Kinzer
Not sure, I'm not an admin by trade, but I was actually referring to the fact that some admins assume that user Perl processes that don't die, are doing so unintentionally. I'm sure there may also be security issues with the user/socket coding as well. - -Tom Kinzer Long Beac

command line interface handling asynchronicity

2003-11-27 Thread Philipp Traeder
Good morning everybody, I am writing a small console application, allowing the user to perform some actions via a shell-like interface. The basics of this were rather easy, and with the help of some very nice CPAN modules (i.e. Base::Shell), I have got tab-completion, a help system and much more a