Re: Why doesn't this work: trinary operator?

2008-01-12 Thread davidfilmer
On Jan 11, 1:16 pm, [EMAIL PROTECTED] (Kevin Zembower) wrote: > $type eq "unknown" ? $type="human" : $type="both"; You're trying to use the trinary like you would an if-then-else. You want to instead use it in an assignment: $type = ($type eq 'unknown') ? 'human' : 'both'; -- The best way to

Re: Date::manip query

2007-12-17 Thread davidfilmer
On Dec 17, 3:22 am, [EMAIL PROTECTED] (Pauld) wrote: > my $var=0;my [EMAIL PROTECTED]; > while ($var<$va_length) > { > print "${$daylistsorted[$var]}{TH} "; > print 'from '; > print ${$daylistsorted[$var]}{START}; > print ' to '.${$daylistsorted[$var]}{END_DS}; > print " duration ";print int

Re: WWW::Search::Google-->Service description 'file:' can't be loaded: 404 File `' does not exist

2007-10-17 Thread davidfilmer
> Use of uninitialized value in concatenation (.) or string at > /usr/lib/perl5/site_perl/5.8.8/Net/Google/Service.pm line 80. > Service description 'file:' can't be loaded: 404 File `' does not exist Hmmm. FWIW, I tried to reproduce your problem, but I needed to install Net::Google on my machin

Re: Listing files and their sizes

2007-09-18 Thread davidfilmer
On Sep 18, 1:59 pm, [EMAIL PROTECTED] (Telemachus Odysseos) wrote: > The script works > perfectly if I run it in the directory itself, but if the script is > somewhere else in my system, it prints the filenames but not the sizes. That's because readdir returns a plain filename. You need to eithe