Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Open Source > Perl
| Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Perl section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old October 29th, 2012, 07:44 AM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Query Regarding #!/usr/bin/perl

Hi All,

Can anyone tell me it is mandatory to define #!/usr/bin/perl at the starting of any perl programm?

I have not use this string in my programm still it is running without any error? I want to know the use of this string at the start of programm.

Regards,
Purvee
  #2 (permalink)  
Old October 30th, 2012, 05:34 AM
Authorized User
Points: 93, Level: 1
Points: 93, Level: 1 Points: 93, Level: 1 Points: 93, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2009
Location: Moldova
Posts: 23
Thanks: 0
Thanked 2 Times in 2 Posts
Default

It's for running Perl programs under Unix-like OS.
  #3 (permalink)  
Old December 4th, 2012, 12:44 PM
Registered User
Points: 14, Level: 1
Points: 14, Level: 1 Points: 14, Level: 1 Points: 14, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default spot on mate

I think your quite correct although you can alias this pre-command to run automatically


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiled /Bin files nanonerd BOOK: Beginning ASP.NET 4 : in C# and VB 3 April 20th, 2012 01:49 AM
URGENT:query regarding perl and excel meghavarshney Perl 1 July 19th, 2011 07:16 AM
create recycle bin abaso.jadhav01 ASP.NET 2.0 Basics 3 December 11th, 2006 04:51 PM
msiloadr.bin is spyware???? nfollmer Intro Programming 0 February 3rd, 2006 03:42 PM
no usr tables VB 6/ XP Pro, SQL 2000/Sml Bz 2003 rreynolds Pro VB Databases 1 December 14th, 2004 02:50 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.