How to find out the version of Perl installed on your machine?

I just started to learn perl and I think it is pretty interesting language to learn and explore. I will be writing simple one line posts on Perl eventhough it looks so easy. I believe that there is no dumb question and everything matters.

I just found how to find out the version of perl installed on the linux. It is quite simple, just type “perl -v” to know your version. You can even run perl -version to know the current version.

And to executing a perl script is quite simple. Run perl hello_world.pl 

It can contain: print “Hello World \n”;

In general if you are on unix machine, the perl is installed by default which makes your life so simple. But if you are on windows, you have to add #!/usr/local/bin/perl to the script.

Happy Coding!😀

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s