Re: unlink

2003-12-16 Thread Sisyphus
Eric Edwards wrote: It gives me the correct directory and filename but it does not delete the file. Eric The filename you give it needs to be in the directory that is printed out. If you want it to delete a file in some other directory you need to provide the path to that file as well: perl the_

Re: unlink

2003-12-16 Thread Eric Edwards
It gives me the correct directory and filename but it does not delete the file. Eric - Original Message - From: "Randy W. Sims" <[EMAIL PROTECTED]> To: "Eric Edwards" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, December 16, 2003 10:47 PM Subject: Re: unlink > [To respond s

Re: unlink

2003-12-16 Thread Randy W. Sims
[To respond select the Reply-All option in your mail client to respond to the mailing-list, and please post your response at the end of the message your responding to. Thanks.] On 12/16/2003 11:33 PM, Eric Edwards wrote: - Original Message - From: "Randy W. Sims" <[EMAIL PROTECTED]> To

Re: unlink

2003-12-16 Thread Randy W. Sims
On 12/16/2003 11:04 PM, Eric Edwards wrote: - Original Message - From: "Randy W. Sims" <[EMAIL PROTECTED]> To: "Eric Edwards" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, December 16, 2003 9:35 PM Subject: Re: unlink On 12/16/2003 10:14 PM, Eric Edwards wrote: Hey Liste

Re: unlink

2003-12-16 Thread Randy W. Sims
On 12/16/2003 10:14 PM, Eric Edwards wrote: Hey Listers- This is not homework. I am teaching myself perl. Question: Does the unlink command not work on windows? The book I am using has some code examples using it but I am wondering if it might be UNIX specific. I hope my code isn't that bad. Th

RE: unlink

2003-12-16 Thread Lynn. Rickards
> > Hey Listers- > This is not homework. I am teaching myself perl. > Question: > Does the unlink command not work on windows? The book I am > using has some > code examples using it but I am wondering if it might be UNIX > specific. I > hope my code isn't that bad. > Thanks! > Eric > Unlink

unlink

2003-12-16 Thread Eric Edwards
Hey Listers- This is not homework. I am teaching myself perl. Question: Does the unlink command not work on windows? The book I am using has some code examples using it but I am wondering if it might be UNIX specific. I hope my code isn't that bad. Thanks! Eric _

Re: seek parameters

2003-12-16 Thread Sisyphus
Arms, Mike wrote: Well, I could see a possibility here, but this is total speculation as I do not know the underlying implentation of the sysseek function. Think of the case of function prototypes: sub f (\@) { print 'foo'; } my @a = qw(b c d e f z); f( @a[-2,-3,-1] ); I get this error: T

RE: seek parameters

2003-12-16 Thread Arms, Mike
Well, I could see a possibility here, but this is total speculation as I do not know the underlying implentation of the sysseek function. Think of the case of function prototypes: sub f (\@) { print 'foo'; } my @a = qw(b c d e f z); f( @a[-2,-3,-1] ); I get this error: Type of arg 1 to

Re: Trying to install Perl on XP Professional -- getting dialog error 2755, 110

2003-12-16 Thread Jeff Griffiths
this is the tricky thing with XP for many users. XP uses NTFS by default, which means that ACL permissions are applied to all filesystems. The Activeperl msi installer is actually installed using the MSI service, run as the SYSTEM account and NOT as your user account, so many users run into pro

RE: Trying to install Perl on XP Professional -- getting dialog error 2755, 110

2003-12-16 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Sorry to be so slow in responding. What happened was that I was working with XP for the first time and made a security change and I did it at the wrong place. So basically ended up with no real access to the machine. Ended up having to have the machine rebuilt. I just a few minu

Term::ReadKey weirdness

2003-12-16 Thread Glenn Linderman
Hi, I'm writing a program that needs single character input from the console window. So Term::ReadKey seems to be a natural solution. So I wrote some perl code as follows. Usually the program asks for a key, and gets it. Sometimes it wants to check for the existance of a keypress without de

Re: file permissions via UNC path

2003-12-16 Thread Sisyphus
John Deighan wrote: I have a Perl script, running under IIS, using PerlEx. It is able to read and write files located on external storage using a UNC path. However, if that same Perl script invokes a second Perl script (using the backticks syntax, e.g. `perl otherscript.pl`), then that second Pe

Re: seek parameters

2003-12-16 Thread Sisyphus
Glenn Linderman wrote: Here's a strangeness: my $res = sysseek( @stk[ -2, -3, -1 ] ); fails to compile, but my $res = sysseek( $stk[ -2 ], $stk[ -3 ], $stk[ -1 ] ); compiles fine. As far as I can tell, they have the same effect. And curiously, the error from the first is about the nu

seek parameters

2003-12-16 Thread Glenn Linderman
Here's a strangeness: my $res = sysseek( @stk[ -2, -3, -1 ] ); fails to compile, but my $res = sysseek( $stk[ -2 ], $stk[ -3 ], $stk[ -1 ] ); compiles fine. As far as I can tell, they have the same effect. And curiously, the error from the first is about the number of parameters. Ca

file permissions via UNC path

2003-12-16 Thread John Deighan
I have a Perl script, running under IIS, using PerlEx. It is able to read and write files located on external storage using a UNC path. However, if that same Perl script invokes a second Perl script (using the backticks syntax, e.g. `perl otherscript.pl`), then that second Perl script cannot re

RE: Command Line WinZip Executed From Win32 Perl Script

2003-12-16 Thread Bharucha, Nikhil
My fix today is to close STDOUT and STDERR logs and reopen in append mode just before I execute WinZip via Win32:Process Create method. Doing this forces ALL Winzip messaging to append the log. The only exception is the "Searching..." that gets written to STDERR -- I can deal with this. -Orig

RE: Command Line WinZip Executed From Win32 Perl Script

2003-12-16 Thread Bharucha, Nikhil
HT, I have it installed and functionally it works great. I am just trying to make my logs look nicer which I attach to an email my process generates. Nick -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 16, 2003 1:07 PM To: Bharucha, Nikh

Re: Command Line WinZip Executed From Win32 Perl Script

2003-12-16 Thread tanman
Nick, Download the WinZip Command Line Support Add-On here: http://www.winzip.com/other.htm See if that works better for you. HT - Original Message - From: "Bharucha, Nikhil" <[EMAIL PROTECTED]> Date: Tuesday, December 16, 2003 11:28 am Subject: Command Line WinZip Executed From Win32

Re: Win32::SetupSup and ActiveState Perl 8

2003-12-16 Thread Randy Kobes
On Tue, 16 Dec 2003, Kevin Gibbs wrote: > Does anyone know of a ppm for SetupSup that works with the > latest version of Perl? There's a Win32-Setupsup ppm package for ActivePerl 8xx at http://theoryx5.uwinnipeg.ca/ppms/. -- best regards, randy kobes

Re: Command Line WinZip Executed From Win32 Perl Script

2003-12-16 Thread $Bill Luebkert
Bharucha, Nikhil wrote: > Hi, > > > > Has anyone redirected WinZip output to a separate file? I can’t seem to > get it to work. Currently, it defaults to Standard Output but writes to > the beginning for the first zip and then it appends, and it always > writes “Searching…..” to Standard Err

Problem with Win32::Console and END block.

2003-12-16 Thread Beckett Richard-qswi266
Does anyone know a way around this one. I want to set my dos window up with 80 cols and 100 lines, but when I do I break my END block. use strict; use warnings; $| =1; # use Win32::Console; # my $BUFFER = new Win32::Console(STD_OUTPUT_HANDLE); # $BUFFER->Size(80,100); for (1..5) {print "."; sleep

RE: $SIG{'INT'}

2003-12-16 Thread Beckett Richard-qswi266
I just upgraded to V5.8.1 build 807, and All Is Well (TM). R. ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Command Line WinZip Executed From Win32 Perl Script

2003-12-16 Thread Bharucha, Nikhil
Hi,   Has anyone redirected WinZip output to a separate file?  I can’t seem to get it to work.  Currently, it defaults to Standard Output but writes to the beginning for the first zip and then it appends, and it always writes “Searching…..” to Standard Error.  One site recommended adding

Win32::SetupSup and ActiveState Perl 8

2003-12-16 Thread Kevin Gibbs
Does anyone know of a ppm for SetupSup that works with the latest version of Perl? Thanks, Kevin. This e-mail is confidential and may contain legally privileged information. You should not disclose its contents to any other person. If you are not the intended recipient, please notify the sen