dumb question

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! 😀