Some untested code.
Opendir(DIR, "some_directory");
@files = Readdir(DIR);
$file_I_want = pop(@files);
Print $file_I_want;
Closedir(DIR);
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Ananthan S
Sent: Wednesday, June 23, 2004 3:45 PM
To: [EMAIL PROTE
hi.,
Iam trying to list files in directory and would like to have
last file in a directory as output. pls give some input on this
Thanks
// Ananthans //
-*"*-.,,.-*"*-.,,.-*"*-.,,.-*"*-.,,.-*"*-.,,.-
*.,,.-*,
And if that's all you are looking for, Win32::TaskScheduler should be of
great help...
It's available on sourceforge if you can't find it anywhere else.
Steven
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Aaron.Tesch
Sent: Wednesday, June 23, 2004 12:
MSTask Scheduler, formerly known as the AT scheduler. Can schedule
applications to run on remote systems
The AT command schedules commands and programs to run on a computer at
a specified time and date. The Schedule service must be running to use
the AT command.
AT [\\computername] [ [id] [/DELE
Did you point it at the port as well as the IP address?
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Michael 'topdog' Thompson
Sent: Wednesday, June 23, 2004 11:47 AM
To: [EMAIL PROTECTED]
Subject: request: mozilla proxy settings using perl/proxy/record
-
hi,
below is my perl program that will allow me to record my work in mozilla.
#!\perl
#
use HTTP::Proxy;
use HTTP::Recorder;
#
my $agent = new HTTP::Recorder;
$agent->file ( "logFile.txt" );
#
my $proxy = HTTP::Proxy->new ( port => 808
> I am in need of speeding up a very recursive function;
> in perl, it took almost an hour; in C++, it took a few
> seconds. I wanted more speed.
More often than not, you can speed up a Perl program considerably by
improving the algorithm you're using. You may not need to drop into C.
Perhaps you
A non-Perl alternative that is free, a program called psexec.
http://www.sysinternals.com/ntw2k/freeware/psexec.shtml
Anderson, Mark (Service Delivery) wrote:
Win32::KillProcess
http://www.perlmonks.org/index.pl?node_id=336024
Kind regards,
Mark Anderson
SMS Deployment
The Royal Bank of Scotland
1
Win32::KillProcess
http://www.perlmonks.org/index.pl?node_id=336024
Kind regards,
Mark Anderson
SMS Deployment
The Royal Bank of Scotland
113 Dundas Street, Edinburgh, EH3 5DE
http://www.manufacturing.rbs.co.uk/GTrswi/
> -Original Message-
> From: Daniel Wilson [SMTP:[EMAIL PROTECTED]
Never forget that most often there are 3,4,5 ways of doing something in
Perl. Some ways are slower but may not seem so unless under heavy load.
Perl meets my needs and is very fast with arrays. Of course if you have
a process that performs something like a simple math function many many
times th
At 15:25 2004-06-23, Jaime Teng wrote:
Has anyone done some Assembly Language Programming
inserted into Perl scripts?
If so, can you show a sample?
I am in need of speeding up a very recursive function;
in perl, it took almost an hour; in C++, it took a few
seconds. I wanted more speed.
You want In
I've seen improvements on this scale by replacing Perl code with C.
I had a dynamic-programming string comparison algorithm, which compares all
the subsequences of a short string against a longer one. It creates an
array of size approximately 500x20, and reuses the same array every time to
avoid
Hello
I would like to start (on demand from a perl script) a executable (exe)
file on a remote computer. Both computers are running Window
XP. I have researched into some alternatives, like using
client/server program using sockets, WMI::Service to start a service on a
remote computer, etc. I
You may want to look at your Perl code first. I can't see such a big
difference between C++ and Perl.
-Original Message-
From: Jaime Teng [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 23, 2004 9:26 AM
To: [EMAIL PROTECTED]
Subject: assembly codes inside perl?
Hi,
Has anyone done some
Could you be a little more specific please ?
It might be the case that it is not a language problem but an
implementation problem with a discrepancy that big.
On Wed, 23 Jun 2004, Jaime Teng wrote:
> Hi,
>
> Has anyone done some Assembly Language Programming
> inserted into Perl scripts?
>
> If
Hi,
Has anyone done some Assembly Language Programming
inserted into Perl scripts?
If so, can you show a sample?
I am in need of speeding up a very recursive function;
in perl, it took almost an hour; in C++, it took a few
seconds. I wanted more speed.
thanks.
Jaime
Email Advisory==
> I am trying to write a routine that would print out the
> value(s) of the entire variable either it be scalar, hash or array:
use Data::Dumper;
print Dumper(\$variable);
--
Mark Thomas[EMAIL PROTECTED]
Internet Systems Architect DigitalNet, Inc.
$_=q;Kvtuyboopuif
though I've never used it, I am told that Data::Dumper does this...
check cpan if you don't have it
On Wed, 23 Jun 2004 13:29:44, Jaime Teng <[EMAIL PROTECTED]> wrote:
Hi,
I am trying to write a routine that would print out the value(s) of
the entire variable either it be scalar, hash or array:
###
Jaime,
1. use strict (some of your errors derive from not using it).
2. When using a recursion, you need to have the following algorithm in
mind:
a. Stop when the breaking condition has been reached;
b. Work on the problem on a small scale: solve the problem for the
minimal atomic pro
19 matches
Mail list logo