Re: Useless use of numeric gt (>) in void context and Useless use of private variable in void context

2004-12-05 Thread Peter Scott
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Vincenza Maselli) writes: >I got this error when run my scripts: >Useless use of numeric gt (>) in void context at >/Users/vincenza/src/gfdb/modules/Bio/DBLoader.pm line 382. >Useless use of private variable in void context at >/Users/vincenza/s

RE: Useless use of numeric gt (>) in void context and Useless use of private variable in void context

2004-12-05 Thread Michael Kraus
Could you please clearly point out which is line 382. Just post line 382 and/or line 382 and the surrounding block. Regards, Michael S. E. Kraus Software Developer Wild Technology Pty Ltd ___ ABN 98 091 470 692 Level 4 Tiara, 306/9 Crystal Street, Waterloo NSW 2017,

Re: Useless use of numeric gt (>) in void context and Useless use of private variable in void context

2004-12-05 Thread Lawrence Statton
Why don't you try trimming everything out except the block that encloses line 382 and post that. -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Lawrence Statton - [EMAIL PROTECTED] s/aba/c/g Computer software consists of only two components: ones and zeros, in ro

Useless use of numeric gt (>) in void context and Useless use of private variable in void context

2004-12-05 Thread vincenza maselli
Hi all, I got this error when run my scripts: Useless use of numeric gt (>) in void context at /Users/vincenza/src/gfdb/modules/Bio/DBLoader.pm line 382. Useless use of private variable in void context at /Users/vincenza/src/gfdb/modules/Bio/DBLoader.pm line 382. below is the code: have some of

Re: close (...) or die "$!"

2004-12-05 Thread Chris Devers
On Sat, 4 Dec 2004, Lawrence Statton wrote: > If you re-read the question carefully: > > >> Is there really any condition where "close" fails ... ? Ok, I misread it, but the point still stands -- it's a prudent check. > [...snip...] Another possibility (although far-fetched): What if the > f

Re: ipv4_checkip

2004-12-05 Thread Ing. Branislav Gerzo
[EMAIL PROTECTED] [D], on Sunday, December 5, 2004 at 06:50 (-0500) made these points: try reading mid:[EMAIL PROTECTED] posts, and what about using something like this: print "Good IP address\n" if goodIP('11.22.33.44'); sub goodIP { gethostbyaddr pack('C4', split /\./, shift), 2 } also there

Re: Getting the dir structure

2004-12-05 Thread Dan Jones
On Sat, 2004-12-04 at 17:25 -0800, John W. Krahn wrote: > Dan Jones wrote: > > On Thu, 2004-12-02 at 00:13 -0800, Mr M senthil kumar wrote: > > > >> > >> > >>>I have a file with thousands of line like : > >>>/abc/def/ijk/test.txt > >>>/pqr/lmn/test1.t > >>>I want to get the directory where the fi

Re: Building Network Redundancy into a Perl Client

2004-12-05 Thread Randal L. Schwartz
> "Joshua" == Joshua Berry <[EMAIL PROTECTED]> writes: Joshua> I am trying to implement redundancy in a client application that I am Joshua> writing so that I can have a primary server and a backup server. Look at POE. poe.perl.org. -- Randal L. Schwartz - Stonehenge Consulting Services, I

Re: close (...) or die "$!"

2004-12-05 Thread Randal L. Schwartz
> "Felix" == Felix Li <[EMAIL PROTECTED]> writes: Felix> It's fairly well known that one should use "open" with an "or Felix> die". Is there really any condition where "close" fails, making Felix> the "or die" necessary? A close may need to flush a write buffer. If there's an I/O error durin

Re: Perl module question

2004-12-05 Thread Stephen Liu
Hi, Tks for your advice. --- PerlDiscuss - Perl Newsgroups and mailing lists <[EMAIL PROTECTED]> wrote: - snip - > PATH. What you need to do now is investigate those > tests to see why they didn't pass. Follows are the errors found on running sudo perl -MCPAN -e 'install Tk' - snip - t/di

ipv4_checkip

2004-12-05 Thread DBSMITH
All, Any ideas would be much appreciated! thanks! I have having issues using this module I installed. The module is Net::IPv4Addr. Here is my code use strict; use warnings; use diagnostics; use Net::IPv4Addr qw( :all ); my $var = "23.23.109.103"; print "$var\n"; #if ($var =~ m/^\d+$/) { #

Re: a warning which i can't understand

2004-12-05 Thread Jonathan Paton
> It's not a serious warning -- the program is doing what you coded it > to do, and you can supress it by explicitly mentioning the filehandle in the > print > > print STDOUT (('January' . ); Or you could force scalar context with "scalar", like: print scalar (('Jan', ...)[-1]); Or even:

Re: How's a simpler way to do this? (pattern)

2004-12-05 Thread Ing. Branislav Gerzo
pablo wablo [pw], on Saturday, December 4, 2004 at 21:07 (-0800 (PST)) has on mind: pw> $in =~ /\b[rR] ( ([0-9]) | ( [12][0-9] ) | ( 3[01] pw> ))\b/x; pw> it works fine but I'm not satisfied with it.. (too pw> long!) it's nothing bad on your regexp, just you could use \d instead [0-9]. Defining

Re: a warning which i can't understand

2004-12-05 Thread John W. Krahn
Hameed U. Khan wrote: Hi, Hello, i am new to perl and to this mailing list. My name is Hameed and I am 20 years old. I am doing BCS from Biztek (http://biztek.edu.pk). i have joined this mailing list because i am learning perl. i am getting a warinig which i can't understand so i am mailing you p