POSIX 'strftime' issue

2002-06-20 Thread David Gilden
Good afternoon, I have small problem here, check out the following: #!/usr/bin/perl use CGI qw/:standard/; use CGI::Carp qw(fatalsToBrowser); use POSIX 'strftime'; # This works fine on Earthlink's servers using: print OUT strftime('%A, %B %1d, %Y %I:%M %p',localtime) ,"\n"; #returns: Wednes

fetchall problem

2002-06-20 Thread Maureen E Fischer
Hello, I am stuck on a bug in my perl cgi program that uses a mysql database. In executing the following code I am getting a message in the dump that the fetch failed --fetch () without execute () would anyone be able to see what I am doing wrong or be able to give me any idea of how to go about

Re: exit from subs // creating frames

2002-06-20 Thread Todd Wade
Root wrote: > if ($path_info =~/menu/) { > &menu; > }; > if ($path_info =~/top/) { > ⊤ > }; > if ($path_info =~/main/) { > &main; > }; validate $path_info to make sure it has an acceptable subroutine name, then replace the above stuff with: &$path_info(); As another tip, you shouldnt ever pr

Re: PERL!! : )

2002-06-20 Thread joao silva
Thanks to everyone! I guess now I have enough arguments to convince my Boss to buy me a lot of books from O´Reilly... :) I´m the only one here who knows anything about Linux and Perl... but I´m just starting... I hope that I´d become able to help you someday. JP. >From: "Bill Odom" <[EMAIL PR

using Net::SMTP

2002-06-20 Thread Nate Brunson
is there a way I can get Net::SMTP to return errors that it might encounter into a variable, or something? so that on the page that pops up after the mail is sent, it can display errors if there were any. I have read the man page on it and cant figure out a way to do this any help would be app

RE: PERL!! : )

2002-06-20 Thread Nikola Janceski
We have one.. IIS machine... I forget what it does, but the Sysadmin has made it an untrusted machine. I wonder why???.. (all the holes and some how Mirco$oft still floats, maybe it's a giant turd). > -Original Message- > From: Brent Michalski [mailto:[EMAIL PROTECTED]] > Sent: Thursday,

Re: PERL!! : )

2002-06-20 Thread Brent Michalski
Heh, I probably came off a bit too harsh, Micro$oft really does it all to themselves... - Perl is MUCH more widely used than ASP. - Perl is more maintainable (good management buzzword). I would bet the farm that there are more *GOOD* Perl programmers than ASP programmers. I would bet the ASP h

PERL!! : )

2002-06-20 Thread joao silva
I hate microsoft too, actually I´m trying to convince my boss to use PERL, so I need strongs arguments to do that. Thanks, JP. >From: "Brent Michalski" <[EMAIL PROTECTED]> >To: "joao silva" <[EMAIL PROTECTED]> >CC: [EMAIL PROTECTED],[EMAIL PROTECTED] >Subject: Re: Please, ASP or PERL? >Date: Th

Re: Please, ASP or PERL?

2002-06-20 Thread Brent Michalski
Perl works everywhere, ASP works (basically) only on Micro$oft crap. Perl has mod_perl available for Apache, which will blow away any ASP. Perl also has things like HTML::Mason which allow you to embed Perl direclty into your HTML... Do I sound a bit biased? Heehee, too bad. I dislike Micro$

RE: Please, ASP or PERL?

2002-06-20 Thread Nikola Janceski
It's like asking which, Java or VB? It's up to you to decide which you know better, which is better for your application, which is better for the portablity that you want. > -Original Message- > From: joao silva [mailto:[EMAIL PROTECTED]] > Sent: Thursday, June 20, 2002 3:11 PM > To: [EM

Re: exit from subs // creating frames

2002-06-20 Thread Janek Schleicher
Root wrote at Thu, 20 Jun 2002 14:04:30 +0200: > ok, found a solution to display the framessets > although it works just fine, I would really appreciate comments etc on how to >optimize the code :) > ... > my $path_info = $q->path_info; > > > if (!$path_info) { > &frameset; > exit 0; > } > } >

Please, ASP or PERL?

2002-06-20 Thread joao silva
Why should I use PERL with CGI instead of ASP? Thanks, JP _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For addi

RE: number

2002-06-20 Thread Scot Robnett
if($string =~ /^[0-9]/) checks to see if the string starts with 0. If it doesn't, it checks if the string starts with 1. If it doesn't, it checks if the string starts with 2, and so on until the condition is true. If the condition is never true, then it will do whatever is in your else {} (or els

Re: SV: number

2002-06-20 Thread fliptop
Bo Mangor wrote: > > But how does it work? "if(string =~/^[0-9]/)" > > The part string =~/^[0-9]/ - does it split the string into single > numbers and check if each of them is a part of the list [0-9] ?? > I want to be scour that I have understood the Principe correct. i would suggest

SV: number

2002-06-20 Thread Bo Mangor
Hi again Great thanks to all the quickly answers! I tried a couple of them and - yes it works - thanks! But how does it work? "if(string =~/^[0-9]/)" The part string =~/^[0-9]/ - does it split the string into single numbers and check if each of them is a part of the list [0-9] ?? I w

RE: number

2002-06-20 Thread Scot Robnett
Sorry, that was hasty...shoulda been something more like my $file = '/path/to/file'; open(THEFILE,"<$file"); my @ary = ; close(THEFILE); for my $line(@ary) { if($line !~ /^\d/) { } } -Original Message- From: Bo Mangor [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 20, 2002 1:1

Re: number

2002-06-20 Thread Felix Geerinckx
on Thu, 20 Jun 2002 18:16:59 GMT, Bo Mangor wrote: > I have a file input where I split the file into an array and that works > fine, but there is some "spam" in the beginning of the file I want to > get rid of - the problem is that I never know how many lines there is > with this "spam"! > > The

RE: number

2002-06-20 Thread Scot Robnett
my $file = '/path/to/file'; if ($file !~ /^\d/) { . } -Original Message- From: Bo Mangor [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 20, 2002 1:17 PM To: [EMAIL PROTECTED] Subject: number Hi there I'm a new bird to Perl - and I have a little problem. I have a file input where

number

2002-06-20 Thread Bo Mangor
Hi there I'm a new bird to Perl - and I have a little problem. I have a file input where I split the file into an array and that works fine, but there is some "spam" in the beginning of the file I want to get rid of - the problem is that I never know how many lines there is with this "spam"! Th