Re: [Perl-unix-users] How to copy a file?

2002-09-10 Thread Merijn van den Kroonenberg
Use the File::Copy; module. It has the function Move and Copy.   Merijn - Original Message - From: THOMAS,ANN (Non-HP-Singapore,ex1) To: '[EMAIL PROTECTED]' Sent: Tuesday, September 10, 2002 11:56 AM Subject: [Perl-unix-users] How to copy a file? Hi,

Re: [Perl-unix-users] Command line arguments?

2002-09-11 Thread Merijn van den Kroonenberg
have a look at the use Getopt::Long; module, it handles this pretty nicely.   example:   use Getopt::Long;   &GetOptions("source=s" => \$sourcedir,"help" => \$help);   if($help){  print "commandline parameters:\n";  print "  -help   : this help\n";  print "  -source    : source d

[Perl-unix-users] question about Mail::Sender

2003-01-08 Thread Merijn van den Kroonenberg
Hello all, I am running perl 5.8.0 on linux and i am using the Mail::Sender module. Whenever I use this module i get the following warning: Unknown PerlIO layer 'raw:perlio' at /usr/lib/perl5/site_perl/5.8.0/Mail/Sender.pm line 21 It seems this is something caused by perl version 5.8.0 because t

Re: [Perl-unix-users] question about Mail::Sender

2003-01-09 Thread Merijn van den Kroonenberg
Ah thank you for the fast response. As I am using perl on linux i could remove this completely, right? Greetings, Merijn > From: "Merijn van den Kroonenberg" > > I am running perl 5.8.0 on linux and i am using the Mail::Sender > > module. Whenever I use this module i

Re: [Perl-unix-users] Running time

2003-02-14 Thread Merijn van den Kroonenberg
$starttime_script = $^T; substract that from the current time, and you have your running time. greetings, Merijn - Original Message - From: "Roman @ Melihhov" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 13, 2003 10:05 PM Subject: [Perl-unix-users] Running time

[Perl-unix-users] Question about locking

2003-07-30 Thread Merijn van den Kroonenberg
Hello all,   I am accessing a filesystem from different servers over NFS. Now i want to lock files while i access them (using flock). Now i have one problem, flock only works on a filehandle. Most of the time I dont have access to a filehandle because the filesystem access is handled in a mod