Results 1 to 3 of 3

Thread: Learning Perl

  1. #1
    3 Star Lounger
    Join Date
    Aug 2006
    Location
    Gtr London, England
    Posts
    256
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Learning Perl

    Hi,

    Im trying to get familiar and hopefully understand some basic Perl. I am totally new to the language and am trying to understand how to run the first test line "hello world". However having written the line of script and saved it as .pl, using a windows based system, when I run the .pl it opens and closes so quickly that I cant see what is or isnt there.

    Do I need to run something that calls the perl file?

    Any pointers will be grately appreciated.

    Cheers.
    Lee

  2. #2
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Learning Perl

    I've never tried to run .pl files on Windows. However, what you describe is similar to other types of command line script files.

    Try opening a command window first (Start > Run..., <code>cmd</code> <Enter>) and run your script from the command line. This should allow you to scroll up (if necessary) and see what the output was.

  3. #3
    3 Star Lounger
    Join Date
    Aug 2006
    Location
    Gtr London, England
    Posts
    256
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Re: Learning Perl

    HI,

    Thats a great tip, thanks very much.

    As Im running off Windows the path to Perl is as follows; perlbinppm3-bin.bat, where as if you run from Unix then the path appears to be #!/USR/BIN/PERL, which was confusing me at first.

    I think the initial difficulty is just familiarising myself with how Perl interacts with Windows itself.

    Thanks again for your help.

    Cheers.
    Lee

Posting Permissions

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