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
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
> 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
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