in reply to I come in peace for I seek your wisdom dear monks :)

When you open a command terminal, you start in some default directory. The starting directory can be set, but you'll have to figure out how to do that on some Ubuntu/Unix forum (or search google). You might have to create a file(if it doesn't already exist) with a specific name like .profile, add some lines to it, and put it in a specific directory. It also depends on what "shell" you are using. For all intents and purposes, you can equate "the shell" with the command window. The ls -al command will reveal all the files in a directory--including hidden files that start with a dot.

The following:

$ mkdir begperl $ cd begperl
commands your operating system to mkdir(make a directory) called begperl inside the current directory. So if your default directory (the one the command window opens in) is:

/users/mike/my_programs

the mkdir command would have created the directory /users/mike/my_programs/begperl.

Then the cd (change directory) command says to search the current directory for the directory called begperl and switch to that directory if found. You can always use an absolute path to switch to any directory without knowing what the current directory is:

$cd /users/mike/my_programs/begperl

I suggest you set your prompt($) to indicate what directory you are in. You will have to figure out how to do that on an Ubuntu/Unix forum as well. After you set the prompt to display the directory, the prompt will look like this:

/users/mike/my_programs$ cd begperl /users/mike/my_programs/begperl$

Finally, when you write:

$perl helloworld.pl

that commands your operating system to look for a program called 'perl' and have perl excute a file in the current directory called helloworld.pl.

Replies are listed 'Best First'.
Re^2: I come in peace for I seek your wisdom dear monks :)
by Samurai Monkey (Novice) on Dec 08, 2010 at 05:58 UTC
    Great answer, and it def. helps - thank you too mate :)