Dear List
I am facing the following problem.While running the below mentioned code
open(WHO, "who|")or die "can't open who: $!";
@arr = ;
close(WHO);
print $arr[2]."\n";
I am getting this output --- root tty3 2008-02-24 12:58 . But
when i am trying to extract the 3 rd filed by using
What you need is maybe this:
use strict;
use Data::Dumper;
open(WHO, "who|")or die "can't open who: $!";
my @arr = ;
close(WHO);
print Dumper [EMAIL PROTECTED];
for (@arr) {
print STDOUT (split)[2],"\n";
}
open (LS, "ls -l|") or die "can't open ls -l: $!";
@arr = ;
close (LS);
shift @arr
Anirban Adhikary wrote:
Dear List
Hello,
I am facing the following problem.While running the below mentioned code
You should have these two lines at the beginning of your Perl program:
use warnings;
use strict;
open(WHO, "who|")or die "can't open who: $!";
@arr = ;
close(WHO);
print $ar
Recently, auser <[EMAIL PROTECTED]> wrote:
> i have install GD lib and GD module for perl,
> but when i try to install module by cpan,some error happened.
> (i have install GD::Graph by cpan and it works fine! )
> PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
> "test_harness
Hi all,
I'm using HTML::Parser to process files containing snippets of html
looking like:
First optionAnother
choicepick me
I'm wanting to create a hash of option value, name pairs. Ie, 1 =>
"First option",2=>"Another choice" and so on. Problem is, I don't know
how to handle the hash returned i
hello,Tom Phoenix,!
Can you tell me the main step of this ?
1.install GD lib ?
After that how can i known it's success or not ?
(I use echo $? is 0 to test.)
2.install GD module for perl?
Is it necessarily or not ?
>Recently, auser <[EMAIL PROTECTED]> wrote:
>