Hi,
You should always have
use strict;
use warnings;
in your perl code.
u misspelled the hash %values in the for loop
On Monday 29 May 2006 16:47, Andrej Kastrin wrote:
> foreach $w (sort by_number keys %values) {
> print "$w\t$value{$w}\n"
> }
Shameer
--
--
To unsubscribe, e-mail: [
Can't you use Net::SSH::Perl module ?
On Friday 25 November 2005 17:51, Mazhar wrote:
> Then how well can i write the script to log to a remote server and then
>
> > capture the following thing
> > 1. to know the operating system of the logged remote server
> > 2. to know the free space and then t
From perldoc,
stat function returns a 13 element list
I think
my $perms = stat($conffile)
will not work as you expect.
On Saturday 26 November 2005 04:03, Abid Khwaja wrote:
> Thanks for the pointers. Here's what I did:
>
> 1. stat the file to see the mode set by the system
>
> demerzel:~/etc a
> my $filename = @ARGV;
you are assigning an array ( list ) to a scalar. so the rvalue will be
calculated in scalar context which will be the number elements in @ARRAY
which will be 1 if you give one argument
(my $filename) = @ARGV;
On Wednesday 07 December 2005 05:40, David Sudjiman wrote:
Hi,
I would have done this.
1) download the module source and dependencies and untar
2) perl Makefile.pl
3) Modify PERLPREFIX,SITEPREFIX,VENDORPREFIX in Makefile to a local folder
4) while starting the application set PERLLIB environment variable to include
the folder.
there might be eas
Hi,
Can there be a setuid perl script which when executed, runs with the
privileges of owner of the file
ie:-
I am root
chown root:root /bin/myscript.pl
chmod +s /bin/myscript.pl
Now I am a local user
/bin/myscript.pl
and myscript.pl contains some code which need root privileges to run.
O