Re: how to get the command line from code ?

2002-12-10 Thread Tim . Moose
It is in $0. If you type perl .\foo.pl arg1 ... argn $0 will be '.\foo.pl'. You can break this apart with functions in the File::Basename package if you need to. Tim ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://li

Creating Outlook Tasks from a link

2002-12-10 Thread Charles, Chris
I'm writing a perl script that calculates dates for a code release process. There are several checkpoints to the process that users need to be aware of. I've got the script to the point where I can input a date and it can output to my browser the due dates of the checkpoints. Now, I'd like to provi

Re: how to get the command line from code ?

2002-12-10 Thread Martin Moss
Title: Message Not sure what you're asking for, but it you want the return value when you run an external code you would use backticks:-   my @return=`/path/to/parser $arg $arg`;   I think this puts each line of the response into a new row in the @return array. I'm not 100% sure on this thou

how to get the command line from code ?

2002-12-10 Thread Pankaj Agarwal
Title: Message Hi All   I need to get the perl exe name in the code like for ex. my exe is parser and I invoke it as   parser argv0   How can I get the value parser (the perl exe name in the code ) ? It may be very simple but I am new to this so please excuse.   PS : I would appreciate i

Re: Modules for a website...Where to place.

2002-12-10 Thread Martin Moss
Title: RE: Ping routine correct? thanks Peter :-)   - Original Message - From: Peter Guzis To: [EMAIL PROTECTED] Sent: Tuesday, December 10, 2002 9:04 PM Subject: RE: Modules for a website...Where to place. You can't eval {} a 'use' since the use happens

RE: Modules for a website...Where to place.

2002-12-10 Thread Peter Guzis
Title: RE: Ping routine correct? You can't eval {} a 'use' since the use happens at compile time and the eval is not invoked until run-time.  Enclose your 'use' code in a BEGIN {} block and you should be able to work around it.   Peter GuzisWeb Administrator, Sr.ENCAD, Inc.- A Kodak Companye

Re: Modules for a website...Where to place.

2002-12-10 Thread Martin Moss
Title: RE: Ping routine correct? hm,   to trap the error you could put the code in an eval like this   eval {         use Text::CSV;         }       if ($@)     {         print HTTPOUT $@;     }   this way your code won't die (but still probably won't work), and you should get a print

RE: Modules for a website...Where to place.

2002-12-10 Thread George Gallen
Title: RE: Ping routine correct? I did a check, and "." is the last directory in @INC, so I didn't need to add in the "."   I created the ./Text/CSV.pm both at the site root, and in cgi-bin   When my .cgi tries to "use Text::CSV;" I get an internal server error, which I have no idea what

Re: Modules for a website...Where to place.

2002-12-10 Thread Martin Moss
Title: RE: Ping routine correct? I think you should create a directory in your path called 'Text' Then put your module in there.   The use syntax works out that ::means / and it understands that it needs to append .pm onto your filename. so lets say your homedir is called '.'   You would creat

RE: Modules for a website...Where to place.

2002-12-10 Thread George Gallen
Title: RE: Ping routine correct? The module I'm using is Text::CSV, it's filename is CSV.pm but this would apply to other modules as well.   The test file that comes with it uses a "use Text::CSV;" How do convert the .pm file into a usable module?   I have access to Intel machine (both Linu

RE: Modules for a website...Where to place.

2002-12-10 Thread George Gallen
Title: RE: Ping routine correct? thanks. I'll give it a shot.   George -Original Message-From: Martin Moss [mailto:[EMAIL PROTECTED]]Sent: Tuesday, December 10, 2002 10:47 AMTo: George Gallen; [EMAIL PROTECTED]Subject: Re: Modules for a website...Where to place. the u

Re: Modules for a website...Where to place.

2002-12-10 Thread Martin Moss
Title: RE: Ping routine correct? the use lib '.'; simply appends your current directory (e.g. where you are running your code from) onto the @INC path, which is what perl uses to find the modules, you should put this command, befroe you try to access your modules, but if you put it at the to

Question about eval

2002-12-10 Thread John Deighan
I have a DBI database handle, created with RaiseError set to 1, which is working just fine. If I execute a DBI call within an eval block, the error is caught. However, I thought that the following would guarantee that any errors would be ignored, since I don't call die() in the 'if' block, but a

RE: Modules for a website...Where to place.

2002-12-10 Thread George Gallen
Title: RE: Ping routine correct? Some modules are standard on the site, would I use:   use ; use ;   for theirs   then   use lib '.'; use mymodules;   Can I mix and match that way? Thanks for the info   George -Original Message-From: Martin Moss [mailto:[EMAIL PR

Re: Modules for a website...Where to place.

2002-12-10 Thread Martin Moss
Title: RE: Ping routine correct? try use lib '.'; use mymodule;   Marty - Original Message - From: George Gallen To: [EMAIL PROTECTED] Sent: Tuesday, December 10, 2002 3:05 PM Subject: Modules for a website...Where to place. I need to use a perl module

Modules for a website...Where to place.

2002-12-10 Thread George Gallen
Title: RE: Ping routine correct? I need to use a perl module for a cgi on my webpage, however, the site does not have that particular module standard.   Can I place the .pm file in my /cgi-bin directory, and directly access it with the use statement ie. use //cgi-bin/module.pm ;   Or is t

RE: (no subject)

2002-12-10 Thread Beckett Richard-qswi266
Pardon? R. > -Original Message- > From: harsha reddy [mailto:[EMAIL PROTECTED]] > Sent: 10 December 2002 14:32 > To: [EMAIL PROTECTED] > Subject: (no subject) > > > > > > __ > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable.

(no subject)

2002-12-10 Thread harsha reddy
__ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mail

(no subject)

2002-12-10 Thread harsha reddy
__ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mail

RE: Can pack do what I want?

2002-12-10 Thread Thomas_M
Justin wrote: > You'll forgive me, I graduated in Triple E, so I'm > not sure of what I mean, but I do know what I need. Well I'm a Double E, so you're one E up on me! > So question is, if this string was packed with pack in Perl > would it be > interpreted by the hardware that it's pumped int

Can pack do what I want?

2002-12-10 Thread Allegakoen, Justin Devanandan
You'll forgive me, I graduated in Triple E, so I'm not sure of what I mean, but I do know what I need. Anyway, we used to have this Pascal program that would take a supplied string, and when compiled the output would be used to pump in to a piece of hardware. But this Pascal program can no longer

RE: Loop syntax problem.

2002-12-10 Thread Beckett Richard-qswi266
Thanks Guys. Just to check that I have this down... if ( $ping_number =~ /^\d+$/ ) {do the loop} else {error condition} The ^ means start at the first character, the \d means that it must be a digit, the + means there must be at least one, and as many as you like, and the $ means continue to th