Running Perl Scripts


You can run your Perl scripts in several ways on Unix. For example, you can invoke the perl program directly on the command line as follows :

 $  perl 

Alternatively, make your script executable and then install a full path call to your chosen version of Perl on the first line of your script. This is done using the shebang #! syntax familiar to shell programmers:

  #!/usr/local/bin/perl  use warnings; use strict;    # Rest of my script .... 

You can now run the program directly:

 $ chmod +x $ ./ 

On most Win32 systems, the .pl suffix is usually associated with the Perl interpreter; it should work correctly if you double-click on your script or if you call it directly. Alternatively just call perl directly again and specify the script name :

 C:\>  perl 

Perl for Oracle DBAs
Perl for Oracle Dbas
ISBN: 0596002106
EAN: 2147483647
Year: 2002
Pages: 137

Similar book on Amazon © 2008-2017.
If you may any questions please contact us: