Question: I have looked through a number of tutorials, but I still can't figure out what I am doing wrong... I am trying the code below (in a .pl Perl file, as an executable):

```
#!/usr/bin/perl

perl -e 'print "Hello";' 

```

I run this script and get: 

> 
> Execution of /home/user1/Desktop/file\_backups.pl aborted due to compilation errors.
> 
> 
> 

(I'm new to using Perl to call the Linux command line.)

Answer: 
Try:

```
#!/usr/bin/perl
# This is a comment ~~~
# This script will be run as a Perl script
# since 'perl' isn't a keyword or function in Perl
# something like this must fail:
#
# perl -e 'print "Hello";' 
#
# The following should work.

print "Hello"; print " World\n";

```

Or, if you want your shell script to execute Perl code:

```
#!/bin/sh
# That's a Bash script ~~~
# It's just a command line in a file ...    

perl -e 'print "Hello World";' 

```

Background: `#!` is an [interpreter directive](http://en.wikipedia.org/wiki/Interpreter_directive). 

> 
> When the command is executed, it is converted to an execution of the interpreter.
> 
> 
>
This should work. Double quotes outside single quotes inside ;)

```
perl -e "print 'Hello'"

```