Dear list
while I am running the following code I am getting a warning message. the
code is as follows
1 use strict;
2 use warnings;
3 use Cwd 'abs_path';
4 my $dir = "/home/oraoneload_beta/sraywork/beta2.2/OraOneLoadServer";
5 chdir($dir);
6 #my $filename="$dir/processinfo.txt";
7
Anirban Adhikary wrote:
Dear list
Hello,
while I am running the following code I am getting a warning message. the
code is as follows
1 use strict;
2 use warnings;
3 use Cwd 'abs_path';
4 my $dir = "/home/oraoneload_beta/sraywork/beta2.2/OraOneLoadServer";
5 chdir($dir);
6 #my $f
On Fri, 2008-08-01 at 02:53 -0700, John W. Krahn wrote:
> Anirban Adhikary wrote:
> > Dear list
>
> Hello,
>
> > while I am running the following code I am getting a warning message. the
> > code is as follows
> >
> > 1 use strict;
> > 2 use warnings;
> > 3 use Cwd 'abs_path';
> > 4 my $
Mr. Shawn H. Corey wrote:
>
> next if /grep/;
No. The op was using grep to filter processes from the output of ps. he had a
filter of
grep -v grep
so that the filter itself wouldn't be selected. John is using perl to filter the
processes, so instances of grep shouldn't be filtered out.
R
On Fri, 2008-08-01 at 11:16 +0100, Rob Dixon wrote:
> Mr. Shawn H. Corey wrote:
> >
> > next if /grep/;
>
> No. The op was using grep to filter processes from the output of ps. he had a
> filter of
>
> grep -v grep
>
> so that the filter itself wouldn't be selected. John is using perl to
Hi all,
I am trying to make a perl code which would read a matrix (basically an
array which contains references to other arrays) and initialize a hash with
the first value of each dereferenced array acting as a key and remaining
elements as values using references.
The source code and output are
Mr. Shawn H. Corey wrote:
On Fri, 2008-08-01 at 11:16 +0100, Rob Dixon wrote:
Mr. Shawn H. Corey wrote:
next if /grep/;
No. The op was using grep to filter processes from the output of ps. he had a
filter of
grep -v grep
so that the filter itself wouldn't be selected. John is using per
Amit Saxena wrote:
> Hi all,
>
> I am trying to make a perl code which would read a matrix (basically an
> array which contains references to other arrays) and initialize a hash with
> the first value of each dereferenced array acting as a key and remaining
> elements as values using references.
>
Amit Saxena wrote:
Hi all,
Hello,
I am trying to make a perl code which would read a matrix (basically an
array which contains references to other arrays) and initialize a hash with
the first value of each dereferenced array acting as a key and remaining
elements as values using references.
Thanks U all for this support. I not only get the solution but I also
learned some great things. Thanks a lot list..
Regards
Anirban Adhikary.
On Fri, Aug 1, 2008 at 4:33 PM, John W. Krahn <[EMAIL PROTECTED]> wrote:
> Mr. Shawn H. Corey wrote:
>
>> On Fri, 2008-08-01 at 11:16
On Fri, 2008-08-01 at 04:03 -0700, John W. Krahn wrote:
> The OP was using:
>
> ps -U oraoneload_beta -u oraoneload_beta u | grep perl | grep -v grep
>
> If you used the shell at all you would know that the second grep is
> there to remove the line that the first grep generates. You could
> a
Rob Dixon wrote:
>
> my %h;
>
> print "Matrix is as follows :- \n";
> foreach $a (@arr) {
> print "Row = @{$a}\n";
> my @vals = @$a;
> my $key = shift @vals;
> $h{$key} = [EMAIL PROTECTED];
> }
My apologies. There was a mistake in my code in that I was using the special
variable $a for t
Rob Dixon <[EMAIL PROTECTED]> wrote:
> My apologies. There was a mistake in my code in that I was
> using the special variable $a for this loop. I should have
> written something like this:
>
> my %h;
>
> print "Matrix is as follows :- \n";
> foreach (@arr) {
> my @vals = @$_;
> p
13 matches
Mail list logo