Hello World

This being my first post, let me write the custom Hello World
My interest revolves around three things as of this writing.
So, here I post the three "Hello World" programs using them.

  • Perl
perl -e 'print "Hello World\n"'

perl invokes the interpreter and -e (hyphen e) tells that a program is following it.
Using 5.10 and above versions, we can write like the following

perl -M5.010 -e 'say "Hello World"'

-M loads the module 5.010 for us and hence the say function works as expected.

  • Oracle SQL
select 'Hello World' from dual;

dual is a special table that comes with the Oracle database.
from clause is a must in Oracle (not like MySQL).

Though I distinguished SQL and PL/SQL here, usually I don’t. Its just the “Oracle.”
My experience is with only one database and it is Oracle.
So, if you want to learn about any other database, this is not the site.

  • Oracle PL/SQL
set serveroutput on
exec dbms_output.put_line('Hello World');

The above code is not a PL/SQL as a whole. First line is an SQL*Plus command.
And exec of the second line is also an SQL*Plus command.
Here comes the pure PL/SQL program.

    dbms_output.put_line('Hello World');
  • JavaScript
<script type="text/javascript">
    alert('Hello World');

Hello World – from the omni-present JavaScript
This html code fragment (yes, it is not a complete mark-up) should show a message box.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s