[Ilugc] [OT] Running PERL
- From: schalla@xxxxxxxxxxxxxx (shobhan)
- Date: Mon, 28 Oct 2002 17:23:31 +0530
--------------080704020306090304050607
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Running perl:
1) perl some_program.pl (as Bharti said put #!/usr/bin/perl -w as ur
first line, infact this should be the there always)
2) if ur perl program is an executable u can run the perl program like this:
./some_program.pl
The switch "-w" enables the warnings.
Schalla
Systems Analyst
VA Software Corp
Bharathi S wrote:
Today at 9:17pm, Elanchezhian Sivanandam mailed Me too :
"perl perl.pl argument[1] argument[2] argument[3]" instead of the
"shell_script argument[1] argument[2] argument[3]"
I hope, #!/usr/bin/perl in 1st line will automatically invoke the
perl command. If I am worng, Correct me.
HTH, Bye :)
--------------080704020306090304050607
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
</head>
<body>
<font face="Helvetica, Arial, sans-serif" size="-1">Running perl:<br>
<br>
1) perl some_program.pl (as Bharti said put #!/usr/bin/perl -w as ur first
line, infact this should be the there always)<br>
2) if ur perl program is an executable u can run the perl program like this:<br>
./some_program.pl</font><br>
<font face="Helvetica, Arial, sans-serif" size="-1"><br>
The switch "-w" enables the warnings.<br>
<br>
Schalla<br>
Systems Analyst<br>
VA Software Corp<br>
</font><br>
Bharathi S wrote:<br>
<blockquote type="cite"
cite="midPine.LNX.4.44.0210281033330.22757-100000@xxxxxxxxxxxxxxxxxxxxx">
<pre wrap="">Today at 9:17pm, Elanchezhian Sivanandam mailed Me too :
</pre>
<blockquote type="cite">
<pre wrap="">"perl perl.pl argument[1] argument[2] argument[3]" instead of
the
"shell_script argument[1] argument[2] argument[3]"
</pre>
</blockquote>
<pre wrap=""><!---->
I hope, #!/usr/bin/perl in 1st line will automatically invoke the
perl command. If I am worng, Correct me.
HTH, Bye :)
</pre>
</blockquote>
<br>
<br>
</body>
</html>
--------------080704020306090304050607--
Other related posts: