Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion enhanced open-funktion

Newsgroups: perl.perl6.language
Path: g2news1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.perl.org
Return-Path: <gb...@unico.com.au>
Mailing-List: contact perl6-language-h...@perl.org; run by ezmlm
Delivered-To: mailing list perl6-langu...@perl.org
Received: (qmail 15603 invoked from network); 15 Jul 2004 09:59:00 -0000
Received: from x1.develooper.com (63.251.223.170)
  by onion.develooper.com with SMTP; 15 Jul 2004 09:59:00 -0000
Received: (qmail 22626 invoked by uid 225); 15 Jul 2004 09:59:00 -0000
Delivered-To: perl6-langu...@perl.org
Received: (qmail 22617 invoked by alias); 15 Jul 2004 09:58:59 -0000
X-Spam-Status: No, hits=-4.9 required=8.0
	tests=BAYES_00
X-Spam-Check-By: la.mx.develooper.com
Received: from 105.209.221.203.comindico.com.au (HELO mail.unico.com.au) (203.221.209.105)
  by la.mx.develooper.com (qpsmtpd/0.27.1) with ESMTP; Thu, 15 Jul 2004 02:58:57 -0700
Received: from narn.third.space.unico.com.au (narn.third.space.unico.com.au [10.10.2.2])
	by mail.unico.com.au (Postfix) with ESMTP id BCBCC2425B
	for <perl6-langu...@perl.org>; Thu, 15 Jul 2004 19:58:53 +1000 (EST)
Received: (from mail@localhost)
	by narn.third.space.unico.com.au (8.8.8/8.8.8) id TAA00617
	for <perl6-langu...@perl.org>; Thu, 15 Jul 2004 19:58:53 +1000 (EST)
	(envelope-from gb...@unico.com.au)
Received: from centauri.hyper.space.unico.com.au(10.10.1.3) by narn.third.space.unico.com.au via smap (V2.1)
	id xma000615; Thu, 15 Jul 04 19:58:42 +1000
Received: from wintermute.unico.com.au (wintermute.unico.com.au [192.168.100.11])
	by centauri.unico.com.au (Postfix) with ESMTP id 15E3427FCF
	for <perl6-langu...@perl.org>; Thu, 15 Jul 2004 19:58:42 +1000 (EST)
Organization: UNICO Computer Systems
To: perl6-langu...@perl.org
Subject: Re: enhanced open-funktion
Date: Thu, 15 Jul 2004 20:01:40 +1000
User-Agent: KMail/1.5.4
References: <200407130906.i6D96uWA023353@babylonia.flatirons.org> <20040713214332.GC13540@c4.convolution.nl> <Pine.LNX.4.58.0407151141100.21078@q.pcteor1.mi.infn.it>
In-Reply-To: <Pine.LNX.4.58.0407151141100.21078@q.pcteor1.mi.infn.it>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-ID: <200407152001.40729.gb...@unico.com.au>
X-Spam-Rating: onion.develooper.com 1.6.2 0/1000/N
Approved: n...@nntp.perl.org
From: gb...@unico.com.au (Greg Boug)

On Thursday 15 July 2004 19:42, Michele Dondi wrote:
> >     open '<', $foo;
> >     open '>', $foo;
> >
> > is much harder to read than
> >
> >     open 'r', $foo;
> >     open 'w', $foo;
> Are you sure?!? I would tend to disagree... not that MHO is particularly
> important, I guess, but just to stress the fact that it is by large a
> subjective matter...

I have always felt that keeping it the same as shell scripting was a handy
thing, especially when I have been teaching it to others. It also makes
the ol' perl5 

	open FH, "|/usr/bin/foo";

make a lot more sense. Using something like

	open "p", "/usr/bin/foo";

just wouldn't have the same ring to it. Aside from which, it gets even worse 
when you consider how you would have to change:

	open FH, "/usr/bin/foo|";

Greg
-- 
Greg Boug (gb...@unico.com.au)
Systems and Network Administrator
UNICO Computer Systems
Melbourne, Australia.
Phone: +61-3-9865-9116