Re: Environment variables

2002-12-20 Thread Thomas R Wyant_III
"Mundell, R. \(Ronald\)" <[EMAIL PROTECTED]> wrote: > How do one set an Environment variable out of a perl script, let say PATH? $ENV{PATH} = But this only works for processes spawned by the Perl script that does the setting. Search the archives of the os-specific mailing lists for OS-specific

RE: Creating directories

2002-12-20 Thread Bullock, Howard A.
Title: Creating directories For Win32 try:   use File::Path;    mkpath(['/foo/bar/baz', 'blurfl/quux'], 1, 0711);    rmtree(['foo/bar/baz', 'blurfl/quux'], 1, 1);      

RE: Creating directories

2002-12-20 Thread James Hooker
Title: Creating directories Here is a routine that checks to see if the directory exists before it creates it and prompts the user with a Tk messagebox. Works on Windows & Unix. Or just use "mkdir" by itself.   sub CkCreateDir(@){    my $dir = $_[0];    if (!opendir(HD, $dir))    {   

Re: Problem in current directory reference

2002-12-20 Thread Lee Goddard
chdir is not current directory: it's CHange Directory. Try: use Cwd; warn cwd; CWD is Current Working Directory. At 16:24 20/12/2002, Shailesh wrote: I am facing a strange problem in my Perl script. When I run my Perl script from a sub folder, it takes the root folder as the

Problem in current directory reference

2002-12-20 Thread Shailesh
I am facing a strange problem in my Perl script. When I run my Perl script from a sub folder, it takes the root folder as the reference. The `chdir` (current directory) command is giving me the ‘C:’ irrespective of where I run my Perl script from. I think this has to do with some environm

Perlsvc created a program that eternally says "starting"

2002-12-20 Thread Lee Clemmer
I posted this on the PDK mailing list but only got one reply. I'd like a 2nd opinion before I re-code! Thanks, Lee (post, other reply & dialog follows) > -Original Message- > From: Lee Clemmer [mailto:[EMAIL PROTECTED]] > Sent: Thursday, December 19, 2002 2:41 PM > To: '[EMAIL PROTEC

RE: Direct to Browser interaction

2002-12-20 Thread Lee Clemmer
>Biggest problems is figuring out how it needs to be configured. I >didn't have much luck in configuring Apache for Linux. > >Shain If you don't want to use Apache there are several *excellent* lightweight servers that are completely painless to set up. They have far fewer features, but you likel

Creating directories

2002-12-20 Thread Hawley, Eric
Title: Creating directories I was wondering if someone knows a good way to create directories for Windows and Linux using Perl. Thanks Eric Eric Hawley Office of Information Technology Ohio Department of Natural Resources Phone:  (614) 265-1028 Mailto:Eric.Hawley@dnr.state.oh.us

RE: Term::Readkey

2002-12-20 Thread Al Caraciolo
Yes you can (assuming you meant TERM not TERMN) as in: use Term::ReadKey; END { ReadMode ('restore'); } -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Kris Wolff Sent: Friday, December 20, 2002 7:11 AM To: Perl Win32 Mail Subject: Term::Readkey

Re: Direct to Browser interaction

2002-12-20 Thread Lee Goddard
It's really not hard, and you don't need to do much: read through the comments in the httpd.conf file, and they're pretty much self-explanitory. Just don't try and use too many of the features to begin with - work from the basics. Good luck lee At 14:08 20/12/2002, Shain Edge wrote: Thank you Bi

RE: Perl WSC and ASP and Permissions

2002-12-20 Thread Tillman, James
> I have a problem calling a perl WSC thru ASP - My ASP page > calls the WSC > fine, the WSC then calls Crypt::PGPSimple which then calls > PGP through the > command line. > > The WSC runs, but the encryption fails and I get an error > message that the > file is not found - Oddly identical code

Re: Filehandles ...

2002-12-20 Thread $Bill Luebkert
Nick Djurovich wrote: Hi, How do you store a Filehandle ? I have an object, which opens a Filehandle and I want to be able to store it in the object instance. Storing data, I do the norm in object methods, and store it in a hash. $self->{DATA} = 'some value'; $self->{DATA}->{TYPE} = 'some type'

Perl WSC and ASP and Permissions

2002-12-20 Thread Aaron Trevena
hi guys, I have a problem calling a perl WSC thru ASP - My ASP page calls the WSC fine, the WSC then calls Crypt::PGPSimple which then calls PGP through the command line. The WSC runs, but the encryption fails and I get an error message that the file is not found - Oddly identical code produces t

Term::Readkey

2002-12-20 Thread Kris Wolff
Hi all, Can I use termn::readkey on Win32 boxes ? Is there is something else like this ? Thanx Kris ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Filehandles ...

2002-12-20 Thread Nick Djurovich
Hi, How do you store a Filehandle ? I have an object, which opens a Filehandle and I want to be able to store it in the object instance. Storing data, I do the norm in object methods, and store it in a hash. $self->{DATA} = 'some value'; $self->{DATA}->{TYPE} = 'some type'; But if I want to sto

Re: Direct to Browser interaction

2002-12-20 Thread Lee Goddard
You might want to look at Tk::HTML, but really, it's easier to use a web server. Apache is free and reasonably reliable on Win32; PWS or IIS comes with Windows. Try the Perl Win32 Web list for advice on servers (maybe), and the comp.lang.perl.tk list for TK advice. Cheers lee At 09:16 20/12/2002

Re: Direct to Browser interaction

2002-12-20 Thread $Bill Luebkert
Shain Edge wrote: I'm both new and old to perl. While I know perl basics there is something I think is possible, but I have no idea how to do. From a perl program, how do I open up the default browser on the computer and display html directly from the program without the need of calling a html

Direct to Browser interaction

2002-12-20 Thread Shain Edge
I'm both new and old to perl. While I know perl basics there is something I think is possible, but I have no idea how to do. >From a perl program, how do I open up the default browser on the computer and display html directly from the program without the need of calling a html file? Ind, if this i