#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Location
    Berea,KY, United States
    Posts
    11
    Rep Power
    0
    when i got to the command line from desktop i get c:windows desktop, when i use windows explorer and have the perl bin directory open i can go to start, command and then i get cerlbin perl "whatever script".pl and will execute the script. my ? is, is this correct or should i be able to go directly from my desktop to perl through the command line or will i always have to open the bin directory first.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Aug 2000
    Location
    Indiana
    Posts
    614
    Rep Power
    16
    You should just be able to go
    'perl script.pl'
    I think somebody posted a thread about this earlier. Something about adding a PATH in you autoexec.bat
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Posts
    35
    Rep Power
    14
    I think you should associate the .pl extension with the perl executable. Or, if you have the Active State perl port, use the pl2bat program to turn your .pl file into a .bat file (it just adds a couple of lines at the beginning to call the Perl executable on itself and passes any arguments). Then you don't even have to open a commandprompt anymore, just doubleclick the file and go.

    Ton

IMN logo majestic logo threadwatch logo seochat tools logo