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]
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
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
[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
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
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
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
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
$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
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.
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 {
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
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.
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.
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
15 matches
Mail list logo