Questions about this topic? Sign up to ask in the talk tab.

Perl/Basics/Your First Program/Code

From NetSec
Jump to: navigation, search

To run this code, you'll only need to put it in a text file. Save it as "", and then you can execute the following to run it from either cygwin or bash:

  • chmod +x
  • ./

Alternatively you can simply type:

  • perl

<syntaxhighlight lang="perl">#!/usr/bin/perl use strict; use warnings; print "Hello world!\n";</syntaxhighlight>