🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.perl
Article #591

Re: Perl Newbie

#591
From: Ryszard Lach
Date: Thu, 23 Oct 1997 10:06
29 lines
1929 bytes
In article <3443D459.38DE664C@he-net.demon.co.uk>, Toby Heywood wrote:
>
>Now the stupid question.  I would like to write a new script on my linux
>box, could you tell me what the command line would be to make a new
>script.
>
>As in windows you would just go to new, so I thought maybe in perl I
>could type;
>
>$perl new

Programming in perl has nothing to do with windows-like working. Perl is only
a programming language and it can interpret given as argument files. So you
have to write a set of perl commands in a text file (let's say "my.first.pl"
- .pl is the default extension to perl files) and than you should type in
shell "perl my.first.pl". You can also write "#!/usr/bin/perl" (I assume
that you have perl in this path) in the very first line of the file and than
change it's mode to executable (chmod 755 my.first.pl) and than just run it
in the same way as any other programm. Just remember: when this file is in 
your current directory you have to type "./my.first.pl", not just "my.firs.pl"

					Regards,
						Siaco

-- 
___________________________________________________________________________
|Ryszard Lach | student PWR,EKA/ISK | Poprzeczna 56/1, 51-167 Wroclaw	  |	
|e-mail: rlach@waza.com.pl | Office Waza sp. z o.o. (071) 44-64-49 Wroclaw|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Technical Details
Message-ID: <slrn64u8d5.n9p.rlach@jupi.waza.com.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!agh.edu.pl!ict.pwr.wroc.pl!rlach
References: <3443D459.38DE664C@he-net.demon.co.uk>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!agh.edu.pl!ict.pwr.wroc.pl!rlach
From: rlach@jupi.waza.com.pl (Ryszard Lach)
Newsgroups: pl.comp.lang.perl
Subject: Re: Perl Newbie
Date: 23 Oct 1997 10:06:47 GMT
Organization: Technical University of Wroclaw, Poland
Lines: 29
Message-ID: <slrn64u8d5.n9p.rlach@jupi.waza.com.pl>
References: <3443D459.38DE664C@he-net.demon.co.uk>
NNTP-Posting-Host: jupi.waza.com.pl
X-Newsreader: slrn (0.9.3.2 UNIX)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit