in reply to Re: localtime array slice problem
in thread localtime array slice problem
Running this as#!/usr/bin/perl -w use strict; print @{localtime()}[1,3]; 1;
checks out okay, but running it tells me that I "Can't use string ("Thu Jan 11.... as an ARRAY ref while in strict subs..."perl -c ltimetest.pl
Quick question: Why did -c pass where running the script generates the uncaught exception?-
Celebrate Intellectual Diversity
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: localtime array slice problem
by chipmunk (Parson) on Jan 12, 2001 at 01:48 UTC |