On 9/10/07, Paul Lalli <[EMAIL PROTECTED]> wrote:
snip
> The above is also using the qw// operator, using < and > as the
> delimiters. This creates a list of single quoted strings. So if the
snip
And the reason I chose <> is that in Perl 6 qw// is will be replaced
by the diamond operator*. Also
On Sep 10, 1:18 pm, [EMAIL PROTECTED] (Mathew Snyder) wrote:
> Thanks. But I'm confused by
>
> > my %start; @start{qw} = split /\//, shift;
> > my %end; @end{qw} = split /\//, shift;
>
> What's happening here?
Quite a bit, actually. Let's go right to left. First, shift()
without an argument
Chas Owens wrote:
> On 9/10/07, Mathew Snyder <[EMAIL PROTECTED]> wrote:
>> I have a script which has to be manually edited to run for a span of days.
>> When
>> these days are over several weeks it can be clearly tedious to enter dates in
>> -mm-dd format. I've decided to set it up to ask f
I don't think you should be posting links to illegally copied publications.
Keep up with me and what I'm up to: http://theillien.blogspot.com
Andrew Curry wrote:
> http://www.unix.org.ua/orelly/perl/cookbook/ch03_06.htm
>
> -Original Message-
> From: Angerstein [mailto:[EMAIL PROTECTED
On Sep 10, 7:18 am, [EMAIL PROTECTED] (Mathew Snyder) wrote:
> I have a script which has to be manually edited to run for a span of days.
> When
> these days are over several weeks it can be clearly tedious to enter dates in
> -mm-dd format. I've decided to set it up to ask for user input.
>
use Date::Calc qw(Delta_Days);
@bree = (1981, 6, 16); # 16 Jun 1981
@nat = (1973, 1, 18); # 18 Jan 1973
$difference = Delta_Days(@nat, @bree);
print "There were $difference days between Nat and Bree\n";
There were 3071 days between Nat and Bree
-Original Message-
From: Angerste
http://www.unix.org.ua/orelly/perl/cookbook/ch03_06.htm
-Original Message-
From: Angerstein [mailto:[EMAIL PROTECTED]
Sent: 10 September 2007 14:33
To: 'Mathew Snyder'; 'Perl Beginners'
Subject: AW: User input: dates spanning multiple months
First I would use unix internal time format(e
On 9/10/07, Mathew Snyder <[EMAIL PROTECTED]> wrote:
> I have a script which has to be manually edited to run for a span of days.
> When
> these days are over several weeks it can be clearly tedious to enter dates in
> -mm-dd format. I've decided to set it up to ask for user input.
>
> What