set up unix code on windows

2003-12-19 Thread Eric Edwards
List, My perl book says this is Unix code. How would I code this to work on windows? !/usr/bin/perl chdir / or die Can't chdir to root directory: $!; exec ls, -l or die Can't exec ls: $!; Thanks! Eric ___ Perl-Win32-Users mailing list [EMAIL PROTECTED]

Array within an array...? I'm confused

2003-12-19 Thread Brian Gibson
Hello all, I am having trouble understanding some programming logic/syntax. This program looks like it is using what someone referred to as a reference to an array (and that doesn't make a ton of sense to me, I am only familiar with arrays, scalar variables, and hashes). The blurb of code looks

Net::POP3 with non-default port number?

2003-12-19 Thread Peter Davis
I've been using Net::POP3 in my own e-mail fetching script for a while. Now, however, I want to modify the script to use the K9 proxy for spam filtering. This proxy requires, among other things, that I use port instead of the default port of 110. According to the documentation, I think I

RE: File Monitoring

2003-12-19 Thread Wagner, David --- Senior Programmer Analyst --- WGO
[EMAIL PROTECTED] wrote: Subject: File Monitoring I've searched quite a bit for the illusionary AdvNotify and I'm The writer of AdvNotify just seemed to disappear. At least any list that I was on, no one an inkling what happened. I used the AdvNotify and it was very slick and I

Re: set up unix code on windows

2003-12-19 Thread Eric Edwards
Richard DeWath: 1. put in #!/usr/bin/perl That was a copying error on my part. - keep it consistent even though Windows does not use it, in case your code is portable to unix systems this saves you having to add it. 2. / issue; you can do it the unix way and let perl manage the

RE: Array within an array...? I'm confused

2003-12-19 Thread Gould, Kevin
Read through perldoc perldsc - it's an excellent way to learn how this works. From: Brian Gibson [mailto:[EMAIL PROTECTED] Sent: Friday, December 19, 2003 4:27 PMTo: [EMAIL PROTECTED]Subject: Array within an array...? I'm confused Hello all,I am having trouble understanding some

Re: set up unix code on windows

2003-12-19 Thread $Bill Luebkert
Eric Edwards wrote: List, My perl book says this is Unix code. How would I code this to work on windows? Next line missing first char of # !/usr/bin/perl chdir / or die Can't chdir to root directory: $!; exec ls, -l or die Can't exec ls: $!; Other than that, it should work if you have a

subroutine name

2003-12-19 Thread Eckart Uhlig
Hi all, is there a way to determine the name of the current called subroutine? I don't want to print out the subroutine's name explicitly, I'm hoping for a 'magic' variable/ function or something like that, which I can pass to a plain printout function. In the perlvars manpage I haven't found

Re: set up unix code on windows

2003-12-19 Thread Eric Edwards
$Bill Luebkert wrote: Sent: Friday, December 19, 2003 4:33 Next line missing first char of # The missing # is a copy error--it is in my program. !/usr/bin/perl chdir / or die Can't chdir to root directory: $!; exec ls, -l or die Can't exec ls: $!; I tried changing the exec to exec dir

Re: subroutine name

2003-12-19 Thread Randy W. Sims
On 12/19/2003 3:41 PM, Eckart Uhlig wrote: Hi all, is there a way to determine the name of the current called subroutine? I don't want to print out the subroutine's name explicitly, I'm hoping for a 'magic' variable/ function or something like that, which I can pass to a plain printout function.

RE: subroutine name

2003-12-19 Thread Wagner, David --- Senior Programmer Analyst --- WGO
It is the caller subroutine. I use it for printing start and stop times for particular subs. So the print sub references who called him by something like: #!perl -w sub a { c; $caller = (caller(0))[3]; $caller =~ s/.*:://; print 0 I am $caller\n; }; sub b {c}; sub c {

Re: subroutine name

2003-12-19 Thread Lynn. Rickards
On Friday 19 December 2003 15:41, Eckart Uhlig wrote: Hi all, is there a way to determine the name of the current called subroutine? I don't want to print out the subroutine's name explicitly, I'm hoping for a 'magic' variable/ function or something like that, which I can pass to a plain

Re: Net::POP3 with non-default port number?

2003-12-19 Thread Randy W. Sims
On 12/19/2003 3:49 PM, Peter Davis wrote: I've been using Net::POP3 in my own e-mail fetching script for a while. Now, however, I want to modify the script to use the K9 proxy for spam filtering. This proxy requires, among other things, that I use port instead of the default port of 110.

Re: set up unix code on windows

2003-12-19 Thread $Bill Luebkert
Richard DeWath wrote: 1. put in #!/usr/bin/perl - keep it consistent even though Windows does not use it, in case your code is portable to unix systems this saves you having to add it. Not a Windoze thing, a shell thing. Some programs running on Windoze *DO* use the shebang line. 2.

Re: Array within an array...? I'm confused

2003-12-19 Thread $Bill Luebkert
Brian Gibson wrote: Hello all, I am having trouble understanding some programming logic/syntax. This program looks like it is using what someone referred to as a reference to an array (and that doesn't make a ton of sense to me, I am only familiar with arrays, scalar variables, and