Ryan Dillinger wrote:
> Hello All,

Hello,

> I just recently loaded linux onto my laptop.

Congratulations.

> I hope this was not a bad move.

Depends on your definition of "bad".

> But I cannot find the Activstate Perl I downloaded.

Every version of Linux that I have used already had Perl installed.

> I am using openSUSE Linux.
> I also am having trouble deciding which is the command line to open my
> scripts.

You probably want to use an editor. Look for an 'Editors' menu off the main
menu.  Or perhaps you want an IDE like KDevelop.

> There is the : Gnome Terminal, the Konsole, the x Terminal, and the
> Terminal Program - Super User Mode. Don't think it's that one for sure!

Just about any terminal should work the same for running programs**.

> I typed in the shebang line as such #!/usr/bin/perl then hit enter,
> after that I just type the name of the file.pl in. Is there any basic
> info on just what needs to be done in regards to saving a file to
> where, then opening it up at the command line?

Create your Perl program in an editor with "#!/usr/bin/perl\n" as the first
line.  Save it to a convenient location - $HOME/bin for frequently used
programs, SuSE usually adds it to $PATH.  To make the program runnable on its
own: chmod 0750 yourprogram.  If the program's location in not in the $PATH
then you have to prepend the path to the program name in order to run it.

For example:

~> mkdir ~/test
~> cd ~/test
~/test> vim myprogram            # create/edit the program
~/test> chmod 0750 myprogram     # make program executable
~/test> ./myprogram              # run the program from the current directory
~/test> /home/ryan/myprogram     # run the program using absolute path


* Note that the SHELL expands ~ to $HOME

** You should only login as root (or Super User) when you really need to and
not for everyday tasks.



John
-- 
use Perl;
program
fulfillment

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to