Re: Burnt Camel Club

2009-09-24 Thread Raymond Wan
Hi Tim, Tim Bowden wrote: Volume isn't always quality. There are some lists around where a significant portion of the volume is the blind leading the blind. The rest is experts trying to clean up the mess. Here the emphasis seems to be a little more on not making a mess in the first place

Re: best way to get number of elements in list value

2009-09-24 Thread Mike McClain
On Wed, Sep 23, 2009 at 08:08:47PM -0400, Chas. Owens wrote: On Wed, Sep 23, 2009 at 19:16, Mike McClain mike.j...@nethere.com wrote: On Tue, Sep 22, 2009 at 05:09:26AM -0400, Shawn H Corey wrote: Roman Makurin wrote: Does anyone know of a case where one of these expressions would fail?

numeric comparison always returning true!

2009-09-24 Thread pablo
I have a script that tells me the largest file (in bytes) for each extension. I store the largest size in a hash, keyed by the extension. The numeric comparison portion is clearly not working, since it is returning true every time regardless of the numbers being compared. Here's a snippet,

Re: numeric comparison always returning true!

2009-09-24 Thread Uri Guttman
p == pablo pa...@compugenic.com writes: p I have a script that tells me the largest file (in bytes) for each p extension. I store the largest size in a hash, keyed by the extension. p The numeric comparison portion is clearly not working, since it is returning true every time

Re: numeric comparison always returning true!

2009-09-24 Thread pablo
On Thu, Sep 24, 2009 at 02:16:05PM -0400, Uri Guttman wrote: p == pablo pa...@compugenic.com writes: p I have a script that tells me the largest file (in bytes) for each p extension. I store the largest size in a hash, keyed by the extension. p The numeric comparison portion is

Re: numeric comparison always returning true!

2009-09-24 Thread Uri Guttman
p == pablo pa...@compugenic.com writes: p Then I tweaked my code as follows: p if ( $bytes ($sizes{$ext}-{largest}||0) ) { p print $bytes is larger than , $sizes{$ext}-{largest_size} || 0, \n; you missed the important part. fixed a warning like that ignores WHY there is an undef

Re: numeric comparison always returning true!

2009-09-24 Thread Steve Bertrand
pa...@compugenic.com wrote: On Thu, Sep 24, 2009 at 02:16:05PM -0400, Uri Guttman wrote: p == pablo pa...@compugenic.com writes: p I have a script that tells me the largest file (in bytes) for each p extension. I store the largest size in a hash, keyed by the extension. p The numeric

dealing with ~

2009-09-24 Thread Noah
Hi there, How do I use the glob command to handle ~? I am getting file not found for something like ~/cvs/blah.pl so this command dies with file not found: open BBOUTPUT, $output_file or die $!; Cheers, Noah -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional

Re: dealing with ~

2009-09-24 Thread Jim Gibson
On 9/24/09 Thu Sep 24, 2009 5:23 PM, Noah noah-l...@enabled.com scribbled: Hi there, How do I use the glob command to handle ~? I am getting file not found for something like ~/cvs/blah.pl so this command dies with file not found: open BBOUTPUT, $output_file or die $!;

Re: dealing with ~

2009-09-24 Thread Steve Bertrand
Noah wrote: Hi there, How do I use the glob command to handle ~? I am getting file not found for something like ~/cvs/blah.pl so this command dies with file not found: open BBOUTPUT, $output_file or die $!; A non-direct route that may not be portable: #!/usr/bin/perl use strict;

Re: dealing with ~

2009-09-24 Thread Shawn H Corey
Noah wrote: Hi there, How do I use the glob command to handle ~? I am getting file not found for something like ~/cvs/blah.pl so this command dies with file not found: open BBOUTPUT, $output_file or die $!; $output_file = glob( '~/cvs/blah.pl' ); open BBOUTPUT, $output_file or die $!;

Re: numeric comparison always returning true!

2009-09-24 Thread Chas. Owens
On Sep 24, 2009, at 14:31, pa...@compugenic.com wrote: On Thu, Sep 24, 2009 at 02:16:05PM -0400, Uri Guttman wrote: p == pablo pa...@compugenic.com writes: p I have a script that tells me the largest file (in bytes) for each p extension. I store the largest size in a hash, keyed by