Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

new to perl

Programming languages, Coding, Executables, Package Creation, and Scripting.
Post Reply
Message
Author
cuz_why
Posts: 9
Joined: 2006-10-13 09:25

new to perl

#1 Post by cuz_why »

http://learn.perl.org/library/beginning_perl/

I've been using this website to try and learn perl but im stumped on one part in chapter 1

It says make a begperl directory, which i have one.
the second step is to open an editor to add the lines it tells me to inside it.

How do I do this? :O How do I open an editor i mean to add the lines and save it as a .pl file.

Also I don't know if this makes a different but I have perl -v


edit: here is what its asking me

step 1: open your terminal cd to your home directory did that
step 2: mkdir begperl and then cd to begperl and i did that( it actually said i already had a directory with that name)
step 3: open your favirote editor and edit hello.plx ( how do i do this? lawl)
step 4: confirm that perl is installed in /usr/bin/perl ( not sure if it is, and if it isnt does it really matter? Also does it matter if my version of perl is only perl -v? )

shoof
Posts: 379
Joined: 2006-09-08 20:41
Location: My chair

#2 Post by shoof »

It's going to have you create the script in whatever your favorite text editor is. vi is installed by default, so you could do

vi hello.pl

Vi can be hard to understand at first, their are numerous text editors, and everybody has their favorites. Personally I found joe easy to use and powerful enough for the command line.

Perl will be installed in /usr/bin/ by default, you can always verify this by

which perl

That will show you where it is located.

ajdlinux
Posts: 2452
Joined: 2006-04-23 09:37
Location: Port Macquarie, NSW, Australia

#3 Post by ajdlinux »

I don't think vi is default anymore (nvi is Priority: optional, and vim is as well), nano is definitely installed by default, and nano is easier to use anyway.
Jabber: xmpp:ajdlinux@jabber.org.au
Spammers, email this: ajdspambucket@exemail.com.au

cuz_why
Posts: 9
Joined: 2006-10-13 09:25

#4 Post by cuz_why »

thanks guys ^^

User avatar
_FOCUS_
Posts: 205
Joined: 2006-02-22 18:11

#5 Post by _FOCUS_ »

I also new to perl. But I know that you don't need to install anything to run perl codes in Linux. İt is already a Linux program.
If you love something, let it go. If it comes back to you, it's yours. If it's run over by a car, you don't want it.

Post Reply