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 Latest

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 file

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

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

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 cede

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

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. --

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't see

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 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 refinement

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'; $mailer-open ({ From

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 a command into

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 string)) as the

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.

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 does

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

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 robert johnson
Title: Message thanks, Bill and Ken, for your assistance. i'll look into Omen and the other links you provided, and see whati can find from there. --robert -Original Message-From: Bbirthisel Ken Cornetetwrites: Omen Technology owns zmodem. To get the specs