CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Missing Something??

 



Lesia
Deleted

Feb 1, 2000, 5:42 PM

Post #1 of 18 (2735 views)
Missing Something?? Can't Post

Hi, I'm having a little problem with getting my scripts to save as a .pl file. I'm running Windows 95, and have Active Perl, DCOM, CGI.pm, and Edit Notepad installed. Am I missing something that makes the files into pl?
Also if anyone knows where I can find a chat script like the one on http://www.aquilo.net/projects/ Let me know Please. I need everything to be reverse from what the demo shows and without a pull down menu.
Thanks,
Lesia


brian.hayes
User

Feb 1, 2000, 6:20 PM

Post #2 of 18 (2735 views)
Re: Missing Something?? [In reply to] Can't Post

If I am understanding you corectly, you are having a problem saving a file to *.pl. If this is the case then you need to change your properties for how you view your files "Mabee".

Please check the following:

Double click you "My Computer" icon on your desktop.

When the window opens you will see a menu bar across the top.

Select "View" and Then "Properties"

When the new window pops up. Select the tab that says "View" there will be three. "Folder", "View", and "File Types"

Once at this window make shure that "View All files" is selected and make shure that the "Hide file extentions for known file types" is Unchecked.

Then select apply.

That will allow you to see the *.txt file extentions that Notepad or any registered program is creating.

Hope this helps,

Brian Hayes


Lesia
Deleted

Feb 1, 2000, 6:40 PM

Post #3 of 18 (2735 views)
Re: Missing Something?? [In reply to] Can't Post

One more little detail. What should the *.pl file look like? Right now it looks like a windows file without an association path, such as images or like the icon that comes up when you save it as a txt file.


brian.hayes
User

Feb 1, 2000, 6:54 PM

Post #4 of 18 (2735 views)
Re: Missing Something?? [In reply to] Can't Post

If you are seeing the same icon as a text file thats because the file is being saved to something like "myscript.pl.txt" and if you have the "hide file extensions" set where the above post is taking you to, then you will only see "myscript.pl". That is why you need to turn of the hidding of known file types. The programs know of this setting and in notepad even if you save as "myscript.pl" it will still add the ".txt" to the end of it.

Brian Hayes


brian.hayes
User

Feb 1, 2000, 6:58 PM

Post #5 of 18 (2735 views)
Re: Missing Something?? [In reply to] Can't Post

Also when you save a file for the first time make sure you select "ALL FILES" instead of text documents(*.txt).

Open notpad and select "save as". You will see the option "save as type" just below the "File name" option.

Thanks,

Brian Hayes


Lesia
Deleted

Feb 2, 2000, 5:30 AM

Post #6 of 18 (2735 views)
Re: Missing Something?? [In reply to] Can't Post

Brian, thanks for your help. Everything is working fine now. I'll have a couple of questions later on when I start modifying things.
Thanks,
Lesia


69_vette
Deleted

Feb 3, 2000, 8:34 AM

Post #7 of 18 (2735 views)
Re: Missing Something?? [In reply to] Can't Post

I have the same problem with notepad...

Even when I choose the "all files" setting it will still save it as whatever.pl.txt

I've changed my settings so that I see the extension of ALL files... just to avoid that kind of confusion...

Then all I gotta do is delete the .txt part...


brian.hayes
User

Feb 3, 2000, 7:08 PM

Post #8 of 18 (2735 views)
Re: Missing Something?? [In reply to] Can't Post

Do you have the file extention associated with notepad. I.E When you double click on the *.pl file does it open directly to notepad or do you still get the window asking you what program to open the file with? This is just a best guess, but I think it may cause this. Associate the *.pl files with notepad when asked.


Brian Hayes


brian.hayes
User

Feb 3, 2000, 7:15 PM

Post #9 of 18 (2735 views)
Re: Missing Something?? [In reply to] Can't Post

sorry,

When you double click on the file, you will be prompted with a window that has a list of program's. Select notpad and ensure that the check box that says "Always use this program to open this file".

Just tested it on a clean install of NT Srv. with no assocation to *.pl I had the same results. As soon as I assocated *.pl by following the above it started to work..

Being this is Microsoft, it should be relativly the same for all flavors of the OS.

ALso you can tell by the type of icon you see the *.pl file as. It will look like a notepad when it is assocated.....
Let me know,

Brian Hayes


Lesia
Deleted

Feb 4, 2000, 5:26 AM

Post #10 of 18 (2735 views)
Re: Missing Something?? [In reply to] Can't Post

Brian, when I double click on the *.pl file it opens perl and shows the script, even though it has the icon of windows without an associated path. Is that what it's suppose to do?
Lesia


brian.hayes
User

Feb 4, 2000, 5:55 PM

Post #11 of 18 (2735 views)
Re: Missing Something?? [In reply to] Can't Post

Well that is what it is suppose to do. This means your association with perl is correct. The bad news is, I think "I really don't what to test this on my server" is if you change the assoctation to notpad your computer will try to use notepad to run the script. There is an option that comes with windows and that is wordpad, but it is a little more complicated and you will have to remimber to save as text.

Just go to the run line. Goto your start bar, press it and you will see Run.. just above the shutdown button. Type "wordpad" if it pops up then its installed.

I will find out more info and/or a freeware editor that I can point you to.

Brian Hayes


Jasmine
Administrator / Moderator

Feb 5, 2000, 9:14 PM

Post #12 of 18 (2735 views)
Re: Missing Something?? [In reply to] Can't Post

Personally, I love UltraEdit -- excellent text editor with some nice additional features.


Cure
User

Feb 5, 2000, 9:37 PM

Post #13 of 18 (2735 views)
Re: Missing Something?? [In reply to] Can't Post

Hi lesia:

If you double click on the *.pl file it opens perl and shows the script. Then this means its association must be with notepad.
This is fine if you want to open it up to see the source code(to edit it) but it wont perl it for you.

If you want to change its asscoiation so that it complies it for you or to use wordpad or change its icon then goto to windows explorer then click on view then options. then click on the tab FILE TYPES.

Cure


[This message has been edited by Cure (edited 02-05-2000).]


brian.hayes
User

Feb 5, 2000, 9:42 PM

Post #14 of 18 (2735 views)
Re: Missing Something?? [In reply to] Can't Post

Thank you Jasmine,

I was at a loss on this. That is a good choice.

My personal choice is "Home Site" by www.Allaire.com

Brian Hayes


Lesia
Deleted

Feb 6, 2000, 2:21 PM

Post #15 of 18 (2735 views)
Re: Missing Something?? [In reply to] Can't Post

Cure, what should I associate a Perl File with so that it complies it for me? I found the Perl file by going into Explorer window and view options. Right now the Perl File has the window icon when a file has no associated path.
Thanks,
Lesia


brian.hayes
User

Feb 6, 2000, 5:29 PM

Post #16 of 18 (2735 views)
Re: Missing Something?? [In reply to] Can't Post

If you want to the ability to double click a perl script and have perl.exe compile and execute the file "Run it", then I would reinstall perl. There are some registry setting that, at your option can have the install accociate things for you.


If you want the ability to double click the script file and have notepad open the file for editing, then just Highlight the any .pl file "Single click" Hold down the shift key while right clicking on the file. You will see a small pop-up window appear. Select "Open with.." , It should be below "Open". This will pop up another window that will give you the option to re-accosiate the .pl file with another application. Scroll down to wordpad, check the box at the bottom "allways open the file with this program" and hit apply. This will change the assoctations for you.

Let us know.

Brian Hayes


Lesia
Deleted

Feb 6, 2000, 9:22 PM

Post #17 of 18 (2735 views)
Re: Missing Something?? [In reply to] Can't Post

Brian, I did what you said, and it comes up in WordPad. When I doubled clicked on it before associating it with wordpad, it would come up in perl and then disappear real quick. I thought *.pl files were suppose to show up as something like a yellow dot?
Thanks,
Lesia


brian.hayes
User

Feb 7, 2000, 6:36 PM

Post #18 of 18 (2735 views)
Re: Missing Something?? [In reply to] Can't Post

As mentioned above, One way for perl to open the file and the other is for notpad. By changing the association to wordpad it will now look like a wordpad icon. Which will resolve the initial problem.

Did the *.pl files show as yellow icons before?

Brian Hayes

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives