Installation and setup of Perl

  1. Download Windows version of Perl at ActiveState.
  2. Install it.
  3. Save the following code in a file and name it tutorial.perl .
    #!/usr/local/bin/perl
    print 'Hello world.';		# Print a message    
     
  4. Open the Command Prompt.
  5. Execute the following command:
    perl tutorial.perl
     
  6. It should display Hello world..