Introduction
Perl is a interpreted language. It is almost available in all popular operating systems today. Perl will be similar to C language and awk.

Basics

  • Perl script file mostly will have the extension .pl
  • In unix and Linux flavours, the perl file should have an execution permission.
  • Start the perl script file with #!/usr/bin/perl
  • Dont forget to terminate perl commands with ; (semicolen). eg., print “Hello world\n”;

program 1

Always the first program I try on any language is hello world, so perl’s hello world program is here for Linux and UNIX flavours,

#!/usr/bin/perl
print "Hello world.\n";

In Windows the same program will look like,

#!D:/perl/perl.exe
print "Hello world.\n";
  • The first line (in both examples) is a comment for perl, but for shell it tells which interpriter in what path to use on the file.
  • The second command print is similar to printf in C language with some difference. Lets learn the difference later.

Output

perl_hello_world

Share
Tagged with:
 



This new app layar http://layar.eu/ from SPRXmobile http://sprxmobile.com/ combines the camera, GPS and compass to locate houses for sale, popular bar and shops, jobs, healthcare providers and ATMs. This is first launched in Netherlands.

The layer when launched from Android mobile activates camera, finds the location and direction using GPS and compass. The parters provide provide relevant information of set of locations which the user can navigate.

From layar http://layar.eu/?p=111 and codeandroid http://www.codeandroid.org/2009/06/17/augmented-reality-browser-coming-to-android/

Share
Tagged with:
 



Acers new netbook running Android

Acers new netbook running Android

Acer will be shipping netbooks running Android, netbooks running XP will be launched later this year. Dell and HP seems to be interested in similar products.

The advantage of going for Android is fast boot and fast shutdown compared to XP.

This netbook will be first netbook running Android, and it looks like other netbook manufacturers will also follow with Android.

The benefit we get is Free OS which is Virus free with good performance and low price.

From coderanch

Share
Tagged with: