From owner-freebsd-questions@FreeBSD.ORG Sun Jul 2 17:20:43 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 39B7F16A621 for ; Sun, 2 Jul 2006 17:20:43 +0000 (UTC) (envelope-from infofarmer@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by mx1.FreeBSD.org (Postfix) with ESMTP id A962F44128 for ; Sun, 2 Jul 2006 16:52:02 +0000 (GMT) (envelope-from infofarmer@gmail.com) Received: by ug-out-1314.google.com with SMTP id m3so1397087uge for ; Sun, 02 Jul 2006 09:52:01 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=FqLY8Hbi2oRkOuhf0d4VvcR20HLrQ4hSiwLLJruRIumTi7tPMhk4q08ezwzlrKYZiNeaZyLw2fxKOq5DKpp1GfQOgIPKKFUyI4FmhE4k/nVeyVlKWumpjrSfAMXW1ouzQlaYivBdyqcM2WXK6fAfBsucLUHSuC/tHzXkOaktNxU= Received: by 10.67.101.10 with SMTP id d10mr4945998ugm; Sun, 02 Jul 2006 09:52:01 -0700 (PDT) Received: by 10.66.219.4 with HTTP; Sun, 2 Jul 2006 09:52:01 -0700 (PDT) Message-ID: Date: Sun, 2 Jul 2006 20:52:01 +0400 From: "Andrew Pantyukhin" To: "Isaac Friedman" In-Reply-To: <20060702153621.99746.qmail@web39104.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20060702153621.99746.qmail@web39104.mail.mud.yahoo.com> Cc: freebsd-questions@freebsd.org Subject: Re: another newbie X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Jul 2006 17:20:43 -0000 On 7/2/06, Isaac Friedman wrote: > I am new to UNIX but know the basics of getting > around, writing simple shell scripts, etc. Is there > any way to use a short perl program as a shell script? sat64% cat << __END__ > ./script.pl #!/usr/local/bin/perl -w print "Hello world!\n"; __END__ sat64% chmod a+x ./script.pl sat64% ./script.pl