Perl
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   Web Development Archives Mailing Lists Perl

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Web Development Archives Sponsor:
  #1  
Old August 1st, 2008, 07:01 AM
Anirban Adhikary
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Getting warning message while running the following code

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 = "/";
5 chdir($dir);
6 #my $filename="$dir/processinfo.txt";
7 #`ps -U oraoneload_beta -u oraoneload_beta u | grep perl | grep -v grep
$filename`;
8 open(FH,"ps -U oraoneload_beta -u oraoneload_beta u | grep perl | grep
-v grep|") or "can't open : $!";
9 #open(FH,"$filename");
10 my @process = <FH>;
11 close(FH);
12 chomp(@process);
13 pop(@process);
14 foreach my $el(@process)
15 {
16 my $cmd =(split /\s+/,$el)[12];
17 my ($a,$b) = split(/\//,$cmd);
18 my $path=abs_path($b);
20 print $path."\n";
21 }
22

The warning message is as Useless use of string in void context at
processcheck.pl line 8. But while I am commenting the line 8 and
uncommenting the the line 6, 7 and 9 and then running this script I am not
getting any warning message. Where I am making the mistake?

Thanks & Regards in advance
Anirban Adhikary.

Reply With Quote
Reply

Viewing: Web Development Archives Mailing Lists Perl > Getting warning message while running the following code


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek