Welcome to Discuss Everything Forums...

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.


 

Tags for this Thread

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Speed's Avatar
    Junior Member

    Status
    Offline
    Join Date
    May 2009
    Posts
    26
    Downloads
    0
    Uploads
    0

    Why can't I execute my Perl script?

    When I go to my CMD and type myperlscript.pl

    I get "Unrecognized Character at Column 12 /xe2"

    I am using notepad UTF-8 btw, is there a better text editor to do this with?

  2. #2
    martinthurn's Avatar
    Senior Member

    Status
    Offline
    Join Date
    May 2009
    Posts
    183
    Downloads
    0
    Uploads
    0
    You could try adding the following to the top of your program

    use utf8;

    But it would be better to just make sure your program does not contain any non-ASCII characters outside of literal strings.

    And most importantly, WHEN YOU ASK A QUESTION ABOUT YOUR PROGRAM, SHOW US THE PROGRAM SO WE KNOW WHAT YOU'RE TALKING ABOUT AND WE CAN TELL YOU EXACTLY HOW TO FIX IT.

 

 

Quick Reply Quick Reply

Click here to log in


What is the sum of 36 and 12

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Execute PHP script from another script?
    By Fionn Kelleher in forum Discuss PHP
    Replies: 0
    Last Post: 12-30-2010, 04:53 AM
  2. PERL code does not execute?
    By S0ld13r Fr0m H311 in forum Discuss PERL
    Replies: 0
    Last Post: 10-31-2010, 03:21 AM
  3. Why can't I execute my Perl script?
    By Speed in forum Discuss PERL
    Replies: 0
    Last Post: 08-17-2009, 02:16 PM
  4. how to write perl script in notepad and how to execute?
    By princemadhu in forum Discuss PERL
    Replies: 0
    Last Post: 04-05-2009, 12:03 PM
  5. Cant execute perl scripts?
    By johnnyloot in forum Discuss PERL
    Replies: 1
    Last Post: 01-04-2009, 06:31 PM

Bookmarks

Posting Permissions

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