[31957] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 3221 Volume: 11

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Mon Nov 29 00:09:24 2010

Date: Sun, 28 Nov 2010 21:09:07 -0800 (PST)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Sun, 28 Nov 2010     Volume: 11 Number: 3221

Today's topics:
        Date/Time modules - any without default months/days? <Philip@kime.org.uk>
    Re: FAQ 3.10 Is there an IDE or Windows Perl Editor? <brian.d.foy@gmail.com>
    Re: FAQ 5.7 How do I make a temporary file name? <brian.d.foy@gmail.com>
        how to make a perl tk like thing <r@thevoid1.net>
    Re: how to make a perl tk like thing <uri@StemSystems.com>
    Re: how to make a perl tk like thing <sherm.pendley@gmail.com>
    Re: What is the array that contains all of $1, $2, $3 . jidanni@jidanni.org
    Re: What is the array that contains all of $1, $2, $3 . <tadmc@seesig.invalid>
    Re: What is the array that contains all of $1, $2, $3 . <sherm.pendley@gmail.com>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

----------------------------------------------------------------------

Date: Fri, 26 Nov 2010 15:32:55 -0800 (PST)
From: philkime <Philip@kime.org.uk>
Subject: Date/Time modules - any without default months/days?
Message-Id: <a6c2aac2-7519-40b6-aec1-2534bc5951be@e20g2000vbn.googlegroups.com>

It seems that DateTime and Class::Date both will default month and day
to "1" if you try to create an object with just a year:

$d = new("2003")

gives $d->month = 1

Is there a module that doesn't do this? I need to be able to create
date objects which are potentially just a year and need to be able
also to distinguish between really passing month = 1 and having it
default to 1. It seems very odd these modules don't just return
"undef" when no month is passed, for example.


------------------------------

Date: Sun, 28 Nov 2010 21:31:34 +0200
From: brian d foy <brian.d.foy@gmail.com>
Subject: Re: FAQ 3.10 Is there an IDE or Windows Perl Editor?
Message-Id: <281120102131344871%brian.d.foy@gmail.com>

In article <icjfd5$8ev$1@speranza.aioe.org>, Adam Russell
<ac.russell@live.com> wrote:

> How about a mention of RAD GUI builders that support Perl?

That might be the answer to a different question about GUI builders. :)


------------------------------

Date: Sun, 28 Nov 2010 21:37:34 +0200
From: brian d foy <brian.d.foy@gmail.com>
Subject: Re: FAQ 5.7 How do I make a temporary file name?
Message-Id: <281120102137346474%brian.d.foy@gmail.com>

In article
<10c5ac50-b0ed-40f2-b1cf-da2828d5e515@29g2000prb.googlegroups.com>, <
Shaw!@#$"> wrote:


> Looks like there's some confusion between the use of local(*FH) and
> my($fh).

Fixed, thanks,


------------------------------

Date: Sun, 28 Nov 2010 15:27:42 -0800 (PST)
From: Robin <r@thevoid1.net>
Subject: how to make a perl tk like thing
Message-Id: <b12a3dbe-0b78-4377-b5c0-c425b497f08f@w29g2000vba.googlegroups.com>

How can I design my own graphical tookit like perl tk.
Thanks very much in advance.

www.thevoid1.net/solutions - on a side note..

-robin


------------------------------

Date: Sun, 28 Nov 2010 19:21:31 -0500
From: "Uri Guttman" <uri@StemSystems.com>
Subject: Re: how to make a perl tk like thing
Message-Id: <87d3ppq8s4.fsf@quad.sysarch.com>

>>>>> "R" == Robin  <r@thevoid1.net> writes:

  R> How can I design my own graphical tookit like perl tk.
  R> Thanks very much in advance.

you have already shown so much in the way of your perl skills, so why
would you ask such a question. the answer is obvious to any decent perl
hacker.

uri

-- 
Uri Guttman  ------  uri@stemsystems.com  --------  http://www.sysarch.com --
-----  Perl Code Review , Architecture, Development, Training, Support ------
---------  Gourmet Hot Cocoa Mix  ----  http://bestfriendscocoa.com ---------


------------------------------

Date: Sun, 28 Nov 2010 21:20:27 -0500
From: Sherm Pendley <sherm.pendley@gmail.com>
Subject: Re: how to make a perl tk like thing
Message-Id: <m27hfwdg5w.fsf@sherm.shermpendley.com>

Robin <r@thevoid1.net> writes:

> How can I design my own graphical tookit like perl tk.

Step 1: Learn to program.

Come back and let us know when you've done that, and we'll tell you
about step two.

sherm--

-- 
Sherm Pendley
                                   <http://camelbones.sourceforge.net>
Cocoa Developer


------------------------------

Date: Sat, 27 Nov 2010 12:51:56 +0800
From: jidanni@jidanni.org
Subject: Re: What is the array that contains all of $1, $2, $3 ...?
Message-Id: <icq2r5$atr$1@news.datemas.de>

>>>>> "SP" == Sherm Pendley <sherm.pend...@gmail.com> writes:
SP> jida...@jidanni.org writes:

>> What is the array that contains all of $1, $2, $3 ...?
>> man perlvar doesn't say which.

SP> There's no particular named variable, and none needed - just do the
SP> matching in list context to assign the results of the subexpressions
SP> to an array or to a list of scalars:

SP>   my @zzz =~ /(what)(ever)/;
SP>   my ($fee, $fie, $foe, $fum) =~ /(fee)(fie)(foe)(fum)/;

Perl says:
Applying pattern match (m//) to @array will act on scalar(@array)


------------------------------

Date: Sat, 27 Nov 2010 08:18:38 -0600
From: Tad McClellan <tadmc@seesig.invalid>
Subject: Re: What is the array that contains all of $1, $2, $3 ...?
Message-Id: <slrnif25db.a75.tadmc@tadbox.sbcglobal.net>

jidanni@jidanni.org <jidanni@jidanni.org> wrote:
>>>>>> "SP" == Sherm Pendley <sherm.pend...@gmail.com> writes:
>SP> jida...@jidanni.org writes:
>
>>> What is the array that contains all of $1, $2, $3 ...?
>>> man perlvar doesn't say which.
>
>SP> There's no particular named variable, and none needed - just do the
>SP> matching in list context to assign the results of the subexpressions
                                 ^^^^^^
                                 ^^^^^^
>SP> to an array or to a list of scalars:
>
>SP>   my @zzz =~ /(what)(ever)/;
>SP>   my ($fee, $fie, $foe, $fum) =~ /(fee)(fie)(foe)(fum)/;
>
> Perl says:
> Applying pattern match (m//) to @array will act on scalar(@array)


Sherm meant to use the assignment operator rather than the binding
operator:

    my @zzz = /(what)(ever)/;

That assumes that the string to be matched against is in $_.

If the string is instead in a named variable such as $str, then:

    my @zzz = $str =~ /(what)(ever)/;


-- 
Tad McClellan
email: perl -le "print scalar reverse qq/moc.liamg\100cm.j.dat/"
The above message is a Usenet post.
I don't recall having given anyone permission to use it on a Web site.


------------------------------

Date: Sat, 27 Nov 2010 10:35:26 -0500
From: Sherm Pendley <sherm.pendley@gmail.com>
Subject: Re: What is the array that contains all of $1, $2, $3 ...?
Message-Id: <m2d3pqrd8h.fsf@sherm.shermpendley.com>

Tad McClellan <tadmc@seesig.invalid> writes:

> jidanni@jidanni.org <jidanni@jidanni.org> wrote:
>>>>>>> "SP" == Sherm Pendley <sherm.pend...@gmail.com> writes:
>>SP> jida...@jidanni.org writes:
>>
>>>> What is the array that contains all of $1, $2, $3 ...?
>>>> man perlvar doesn't say which.
>>
>>SP> There's no particular named variable, and none needed - just do the
>>SP> matching in list context to assign the results of the subexpressions
>                                  ^^^^^^
>                                  ^^^^^^
>>SP> to an array or to a list of scalars:
>>
>>SP>   my @zzz =~ /(what)(ever)/;
>>SP>   my ($fee, $fie, $foe, $fum) =~ /(fee)(fie)(foe)(fum)/;
>>
>> Perl says:
>> Applying pattern match (m//) to @array will act on scalar(@array)
>
>
> Sherm meant to use the assignment operator rather than the binding
> operator:
>
>     my @zzz = /(what)(ever)/;
>
> That assumes that the string to be matched against is in $_.
>
> If the string is instead in a named variable such as $str, then:
>
>     my @zzz = $str =~ /(what)(ever)/;

Yep. Under-caffeinated typo. Sorry about that. One of these days, I'll
learn not to post before I've had my first pot of coffee. :-(

sherm--

-- 
Sherm Pendley
                                   <http://camelbones.sourceforge.net>
Cocoa Developer


------------------------------

Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>


Administrivia:

To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.

Back issues are available via anonymous ftp from
ftp://cil-www.oce.orst.edu/pub/perl/old-digests. 

#For other requests pertaining to the digest, send mail to
#perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
#sending perl questions to the -request address, I don't have time to
#answer them even if I did know the answer.


------------------------------
End of Perl-Users Digest V11 Issue 3221
***************************************


home help back first fref pref prev next nref lref last post