From owner-freebsd-questions@FreeBSD.ORG Fri Apr 28 11:04:27 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3AF3516A404 for ; Fri, 28 Apr 2006 11:04:27 +0000 (UTC) (envelope-from arnsholt@broadpark.no) Received: from mail45.e.nsc.no (mail45.e.nsc.no [193.213.115.45]) by mx1.FreeBSD.org (Postfix) with ESMTP id C6A7143D48 for ; Fri, 28 Apr 2006 11:04:17 +0000 (GMT) (envelope-from arnsholt@broadpark.no) Received: from bursar.lan (ti211310a080-16232.bb.online.no [85.166.63.104]) by mail45.nsc.no (8.13.6/8.13.5) with ESMTP id k3SB4F4v001022 for ; Fri, 28 Apr 2006 13:04:15 +0200 (CEST) From: Arne Skjaerholt To: freebsd-questions@freebsd.org In-Reply-To: <20060428105401.GB31251@sysadm.stc> References: <20060427024158.GA71123@thought.org> <20060427031043.GA69851@gothmog.pc> <20060427214854.GA2601@thought.org> <1146188104.7085.8.camel@bursar> <20060428105401.GB31251@sysadm.stc> Content-Type: text/plain Date: Fri, 28 Apr 2006 16:23:08 +0200 Message-Id: <1146234188.7085.17.camel@bursar> Mime-Version: 1.0 X-Mailer: Evolution 2.4.2.1 Content-Transfer-Encoding: 7bit Subject: Re: scripting languages... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: arnsholt@broadpark.no List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Apr 2006 11:04:27 -0000 On Fri, 2006-04-28 at 14:54 +0400, Igor Robul wrote: > Except there is one big drawback for me (I'm not Perl-guru :-) ): > If there are some file names on command line of perl-script, then perl > redirects stdout to read from these files, which makes impossible to > read from real stdout. At least for me :-) Not quite. If you use the special ``$line = <>;'' construct Perl will indeed interpret the args on the command line as file names and read from those. However if you explicitly say that you want to read from STDIN like so: ``my $line = ;'' you will not read from a file, but from whatever your STDIN is connected to. Arne :wq