CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    John E is offline Elite Member Power Poster
    Join Date
    Apr 2001
    Location
    Manchester, England
    Posts
    4,835

    Perl - Very basic newbie question

    I'm just taking my first steps into Perl programming. I'm following a book called Perl in Easy Steps by Mike McGrath. The only thing I've learned so far is that every Perl script needs to begin with something called the "she-bang line" which is basically a line that declares the location of the Perl interpreter on the user's system.

    Maybe I'm missing something - but isn't that a bit dumb for a language that claims to be cross-platform? (since the Perl interpreter is bound to be in a different location on different platforms). Surely there must have been a more intelligent way of finding the interpreter, rather than having its location hardwired into every Perl script
    "A problem well stated is a problem half solved.” - Charles F. Kettering

  2. #2
    Join Date
    May 2002
    Posts
    10,943

    Re: Perl - Very basic newbie question

    PERL is part of all UNIX and Linux based systems, so the systems install location will always be the same. And, the shebang is not required in Windows.

    The reason it's there is for custom PERL installs not tied to the OS base.
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured