RE: die() without setting $@

2005-04-19 Thread Anderson, Mark (Service Delivery)
perldoc -f goto eval { ... goto EOB; ... ... EOB: return; };if($@){ ... } Kind regards, Mark Anderson Service Improvement Programme Level 2, 113 Dundas Street Edinburgh, EH3 5DE Tel: 0131 523 8786 Mob: 07808 826 063 > -Original Message- >

RE: Modem File Transfer help

2005-04-19 Thread robert johnson
Title: Message thanks, Bill and Ken, for your assistance.  i'll look into Omen and the other links you provided, and see what i can find from there.   --robert   -Original Message-From: Bbirthisel    Ken Cornetet writes: Omen Technology owns zmodem. To get the sp

RE: cdo win32-ole "object model guard"

2005-04-19 Thread Chris Cappelletti
>I have a perl program that sends email via win32-ole cdo. >I started having the 2 dialogs since "upgrading" :-( to outlook 2003. >The dialogs read: Here's the situation. If I remember correctly (and I probably don't) there are three normal ways to use MAPI to send email. 1. Outlook object M

cdo win32-ole "object model guard"

2005-04-19 Thread Bob Davis
Hi I have a perl program that sends email via win32-ole cdo. I started having the 2 dialogs since "upgrading" :-( to outlook 2003. The dialogs read: 1. A program is trying to access e-mail addresses you have stored in Outlook. Do you want to allow this? 2. A program is trying to automatically send

Re: die() without setting $@

2005-04-19 Thread Rhesa Rozendaal
John Deighan wrote: I need to be able to jump to the end of the enclosing eval block, just like a die() does, but without setting [EMAIL PROTECTED] Is there a way to do that? (I've checked the Perl docs, but couldn't find it). I could possibly die() with a specific string, then use "if ($@ && ($

Re: Modem File Transfer help

2005-04-19 Thread Bbirthisel
In a message dated 4/19/2005 3:56:43 PM Eastern Daylight Time, [EMAIL PROTECTED] writes: Omen Technology owns zmodem. To get the specs and reference code will cost a few $$. 10+ years ago, when I licensed an MS-DOS copy from Omen, it was very few $$. The Omen version ran very well from a command,

Re: Passing back results to calling command or CD

2005-04-19 Thread $Bill Luebkert
Glenn Linderman wrote: > On approximately 4/19/2005 8:57 AM, came the following characters from > the keyboard of $Bill Luebkert: ... > cd /? > > tells about the cd /d option... which changes drives as well as paths... > > And yes, that doesn't work on all versions of windows, but neither doe

Re: die() without setting $@

2005-04-19 Thread $Bill Luebkert
John Deighan wrote: > I need to be able to jump to the end of the enclosing eval block, just like > a die() does, but without setting [EMAIL PROTECTED] Is there a way to do > that? (I've > checked the Perl docs, but couldn't find it). I could possibly die() with a > specific string, then use "

RE: Modem File Transfer help

2005-04-19 Thread Ken Cornetet
Omen Technology owns zmodem. To get the specs and reference code will cost a few $$. Early version of the sz and rz programs were released as free software, but I've never heard of a windows port of them. If you want to code something up in C, they might be a good starting point. http://www.ohse.

RE: Modem File Transfer help

2005-04-19 Thread rwj04
Ken Cornetet wrote: > > Win32::SerialPort > > http://members.aol.com/Bbirthisel/alpha.html > > This will let you send and receive bytes via serial ports, but AFAIK, > there isn't any perl code for doing zmodem transfers (but then I haven't > done a great deal of looking, either). that will let m

die() without setting $@

2005-04-19 Thread John Deighan
I need to be able to jump to the end of the enclosing eval block, just like a die() does, but without setting [EMAIL PROTECTED] Is there a way to do that? (I've checked the Perl docs, but couldn't find it). I could possibly die() with a specific string, then use "if ($@ && ($@ ne ))" as the erro

Re: Passing back results to calling command or CD

2005-04-19 Thread $Bill Luebkert
andrew Black wrote: > $Bill Luebkert wrote: > > >>Did a little searching and came up with this to replace the above 2 lines : >> >> for /F "usebackq" %%i in (`perl find_dir.pl %1`) do cd %%i >> > > Cheers - that does the trick. I was trying to look for a way of > putting the result of

Creating multiple recipients in the Mail::Mailer module?

2005-04-19 Thread Chris Conacher
How do I create multiple recipients in the Mail::Mailer module?   I currently have the following which works for a single recipient in the 'To' field and I was wondering how to add more?   $mailer = new Mail::Mailer 'smtp', Server=>'SERVERNAME';     $mai

RE: Modem File Transfer help

2005-04-19 Thread Ken Cornetet
Win32::SerialPort http://members.aol.com/Bbirthisel/alpha.html This will let you send and receive bytes via serial ports, but AFAIK, there isn't any perl code for doing zmodem transfers (but then I haven't done a great deal of looking, either). Best I remember, zmodem is not a trivial protocol t

Re: Passing back results to calling command or CD

2005-04-19 Thread andrew Black
$Bill Luebkert wrote: Did a little searching and came up with this to replace the above 2 lines : for /F "usebackq" %%i in (`perl find_dir.pl %1`) do cd %%i Cheers - that does the trick. I was trying to look for a way of putting the result of a command into a variable. A slight refinemen

Re: Passing back results to calling command or CD

2005-04-19 Thread Chris Wagner
Quoting O'Reilly book: Every process[2] has its own current directory. When a new process is launched, it inherits its parent's current directory, but that's the end of the connection. If your Perl program changes its directory, it won't affect the parent shell (or whatever) that launched the Per

RE: trying to parse a file...

2005-04-19 Thread Thomas, Mark - BLS CTR
Bruce, Here's a simple module that parses the Python config file format you specified. Use it like this: use ParseConfig; use warnings; use strict; my $cfg = ParseConfig->new('viewcvs.conf'); # Print only the specified root # use $cfg->show() to print the entire

Re: Passing back results to calling command or CD

2005-04-19 Thread $Bill Luebkert
andrew Black wrote: > Hi > I am trying to write a program that will allow me to CD to various > places (more details later). I want to call this from the windows > command line (cmd). > > Ways I have tried are > - use Perl "chdir" - but this only affects the perl process. The > caller doesn

Re: Passing back results to calling command or CD

2005-04-19 Thread Chris Wagner
One MORE thing. If u set an alias u can dispense with the . on the command line. Set an alias like "alias mycd='. mycd.sh'. That way the . is taken care of within the alias and u don't have to type it. The mycd.sh script can do anything u want to come up with a dir name to cd to. -- REMEM

Re: Passing back results to calling command or CD

2005-04-19 Thread Chris Wagner
#!/bin/bash $destdir=`perlscript.pl $1` cd $destdir exit I need to clarify one thing. You have to invoke the script with a . infront of it so that bash will *not* spawn a subshell. [host:/c]$ . mycd blah [host:/blah]$ -- REMEMBER THE WORLD TRADE CENTER ---=< WTC 911 >=-- "...ne ced

Re: Passing back results to calling command or CD

2005-04-19 Thread Chris Wagner
Quoting O'Reilly book: Every process[2] has its own current directory. When a new process is launched, it inherits its parent's current directory, but that's the end of the connection. If your Perl program changes its directory, it won't affect the parent shell (or whatever) that launched the Perl

Modem File Transfer help

2005-04-19 Thread Robert Johnson
i have some devices that send data files via ZModem. i want to automate the process of receiving these files for parsing via a perl script. after searching CPAN and other sites, i find that it's not as easy as i would have thought. Devices::Modem doesnt allow file transfer, and is apparently ve

RE: Passing back results to calling command or CD

2005-04-19 Thread Anderson, Mark (Service Delivery)
this is one of the standard annoyances... the concept of a CDW, PWD, OLDPWD or whatever is a shell environment variable... 1) so you create a new shell (perl.exe) and cs somewhere and store the directory in a file... (or whatever) 2) your batch file (running in a cmd.exe of its own) then does a c

Passing back results to calling command or CD

2005-04-19 Thread andrew Black
Hi I am trying to write a program that will allow me to CD to various places (more details later). I want to call this from the windows command line (cmd). Ways I have tried are - use Perl "chdir" - but this only affects the perl process. The caller doesn't see that change. - write a bat fil

RE: Win32::GUI

2005-04-19 Thread Johan Lindstrom
At 23:35 2005-04-18, Peter Eisengrein wrote: > $W->{dialogui} = 1; > > Is this correct? > Actually it is $W->{-dialogui} = 1; Ehrm... Sorry about that :) /J -- --- -- -- -- - - -- - Johan LindströmSourcerer @ Boss Casinos johanl AT DarSerMan.com La