The very first basic things to get started with perl

Here are they :

  • To tell Unix to parse the content of the file as Perl, we shoult put !#<pathToPerl> at the beginning of the file such as :
        !#/usr/bin/perl
        #the file content….
    , having this, we can call fileNameWithoutExtension instead of the full name.ext since the Unix OS know what type of file to parse it thanks to the #! instruction.

Advertisements

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

%d bloggers like this: