Re: windows XP copyfile

2008-08-08 Thread John M. Dlugosz
Seek the wisdom of the Perl Monks at www.perlmonks.org. Short answer: http://perldoc.perl.org/functions/-X.html -M gives the file age. --John Tara taralish-at-yahoo.com |Perl 6| wrote: I'm trying to do a Perl script (PC has Perl5 installed) in a BAT file which will open the CMD prompt,

Re: new article, A Romp Through Infinity

2008-08-08 Thread John M. Dlugosz
Xavier Noria fxn-at-hashref.com |Perl 6| wrote: IMO to include something related to infinity you need to stick with some particular model and forget the rest. I couldn't have said it any better.

Re: Humorous but serious article

2008-08-08 Thread John M. Dlugosz
TSa Thomas.Sandlass-at-barco.com |Perl 6| wrote: HaloO, John M. Dlugosz wrote: See my latest creation at http://www.dlugosz.com/Perl6/web/APL.html Nice write-up! You say that there's no syntax for refering to a multi as a whole. But is that not simply the short name? E.g. infix:+ is the

Re: new article, A Romp Through Infinity

2008-08-08 Thread Will Coleda
On Thu, Aug 7, 2008 at 11:29 AM, [EMAIL PROTECTED] wrote: Supporting multiple levels of infinities, transfinite numbers or even Surreal Numbers should be considered in the same category of features as returning multiple answers from complex trig functions. They're an interesting thing to

Re: windows XP copyfile

2008-08-08 Thread Will Coleda
On Thu, Aug 7, 2008 at 9:38 AM, Tara [EMAIL PROTECTED] wrote: I'm trying to do a Perl script (PC has Perl5 installed) in a BAT file which will open the CMD prompt, interact with the user and copy files from one location to other directories. Does anyone know how to dir the files in a

Re: Catching exceptions with the // operator

2008-08-08 Thread Yaakov Belch
Thank you very much! my $bill = try ack() orelse try thpp() orelse do ppt(); This certainly does what I asked for, and it's short enough (even if we need to add a few brackets). Yes, the basic problem with the proposal is that it catches all exceptions willy nilly and

Some details of function return captures

2008-08-08 Thread John M. Dlugosz
I was trying to figure out exactly how Captures manage to stay invisible even though functions return them, yet still let you use Capture objects when you want to. Please see my conclusions at http://www.dlugosz.com/Perl6/web/return.html. The Summary at the very bottom clarifies the

Re: new article, A Romp Through Infinity

2008-08-08 Thread Mark J. Reed
On Thu, Aug 7, 2008 at 11:31 AM, Will Coleda [EMAIL PROTECTED] wrote: On Thu, Aug 7, 2008 at 11:29 AM, [EMAIL PROTECTED] wrote: Supporting multiple levels of infinities, transfinite numbers or even Surreal Numbers should be considered in the same category of features as returning multiple

[svn:perl6-synopsis] r14573 - doc/trunk/design/syn

2008-08-08 Thread larry
Author: larry Date: Fri Aug 8 07:59:12 2008 New Revision: 14573 Modified: doc/trunk/design/syn/S02.pod doc/trunk/design/syn/S06.pod doc/trunk/design/syn/S13.pod Log: clarify that foo is a real function even when representing a multiple dispatch s/q:code/quasi/ Modified:

Re: Some details of function return captures

2008-08-08 Thread TSa
HaloO John M. Dlugosz wrote: I was trying to figure out exactly how Captures manage to stay invisible even though functions return them, yet still let you use Capture objects when you want to. Please see my conclusions at http://www.dlugosz.com/Perl6/web/return.html. The Summary at the very

Re: Catching exceptions with the // operator

2008-08-08 Thread TSa
HaloO, Yaakov Belch wrote: I believe that ---from a usability point of view--- it's very important to: * classify exceptions by severity or other characteristics, * provide named adverbs/pragmas to modify default CATCH handlers, * make them configurable by outer scopes. [..] The programmer

Re: [svn:perl6-synopsis] r14573 - doc/trunk/design/syn

2008-08-08 Thread Brandon S. Allbery KF8NH
On 2008 Aug 8, at 10:59, [EMAIL PROTECTED] wrote: Modified: doc/trunk/design/syn/S06.pod = = = = = = = = == --- doc/trunk/design/syn/S06.pod(original) +++ doc/trunk/design/syn/S06.podFri Aug 8 07:59:12 2008 @@

[svn:perl6-synopsis] r14574 - doc/trunk/design/syn

2008-08-08 Thread larry
Author: larry Date: Fri Aug 8 10:34:49 2008 New Revision: 14574 Modified: doc/trunk/design/syn/S02.pod Log: allow isolated ' and - in identifiers (only if followed by alpha) Modified: doc/trunk/design/syn/S02.pod

Re: [svn:perl6-synopsis] r14574 - doc/trunk/design/syn

2008-08-08 Thread Larry Wall
On Fri, Aug 08, 2008 at 10:34:50AM -0700, [EMAIL PROTECTED] wrote: : Author: larry : Date: Fri Aug 8 10:34:49 2008 : New Revision: 14574 : : Modified: :doc/trunk/design/syn/S02.pod : : Log: : allow isolated ' and - in identifiers (only if followed by alpha) Darn the syntax highlighers,

Re: [svn:perl6-synopsis] r14574 - doc/trunk/design/syn

2008-08-08 Thread Jon Lang
But are 'twas and -x valid identifiers? IMHO, they should not be. -- Jonathan Dataweaver Lang

Re: [svn:perl6-synopsis] r14574 - doc/trunk/design/syn

2008-08-08 Thread jerry gay
On Fri, Aug 8, 2008 at 12:57 PM, Jon Lang [EMAIL PROTECTED] wrote: But are 'twas and -x valid identifiers? IMHO, they should not be. no, indeed they are not, because they don't start with underscore or alpha. that's why they won't work. ~jerry

Re: [svn:perl6-synopsis] r14573 - doc/trunk/design/syn

2008-08-08 Thread John M. Dlugosz
Don't forget I still have edits posted at http://www.dlugosz.com/Perl6/offerings/. larry-at-cvs.perl.org |Perl 6| wrote: Author: larry Date: Fri Aug 8 07:59:12 2008 New Revision: 14573 Modified: doc/trunk/design/syn/S02.pod doc/trunk/design/syn/S06.pod doc/trunk/design/syn/S13.pod

Re: Some details of function return captures

2008-08-08 Thread John M. Dlugosz
TSa Thomas.Sandlass-at-barco.com |Perl 6| wrote: If such a ReturnCapture could also be preliminary of some kind, then lvalue subs could be lazily resumed when the rvalue comes in. Can you elaborate on that? I don't follow. Also infix:/ needs a lazy item that is collapsed into Int, Num or

Differential Subscripts

2008-08-08 Thread John M. Dlugosz
How is @array[*-2] supposed to be implemented? S09v28 // reported again 8-Aug-2008 Is this magic known to the parser at a low level, or is it possible to define your own postcircumfix operators that interact with the interpretation of the argument? Does this use of * apply to any

Quick question: (...) vs [...]

2008-08-08 Thread John M. Dlugosz
What is the difference between (1,2,3) and [1,2,3] ? --John

List of captures, why?

2008-08-08 Thread John M. Dlugosz
Why is 3;3;3 a list of captures rather than a list of lists? --John

Re: Quick question: (...) vs [...]

2008-08-08 Thread Brandon S. Allbery KF8NH
On 2008 Aug 8, at 22:53, John M. Dlugosz wrote: What is the difference between (1,2,3) and [1,2,3] ? IIRC one is a list, the other a reference to a list --- which in perl6 will be hidden for the most part. so practically speaking the difference is minimal. -- brandon s. allbery

Re: List of captures, why?

2008-08-08 Thread John M. Dlugosz
Brandon S. Allbery KF8NH allbery-at-ece.cmu.edu |Perl 6| wrote: On 2008 Aug 8, at 23:06, John M. Dlugosz wrote: Why is 3;3;3 a list of captures rather than a list of lists? IIRC it has to do with providing enough information for slices and/or * to work in multiple dimensions. So how

Re: Differential Subscripts

2008-08-08 Thread Jon Lang
On Fri, Aug 8, 2008 at 7:41 PM, John M. Dlugosz [EMAIL PROTECTED] wrote: How is @array[*-2] supposed to be implemented? S09v28 // reported again 8-Aug-2008 Is this magic known to the parser at a low level, or is it possible to define your own postcircumfix operators that interact with the