
shawnhcorey
Enthusiast

Aug 19, 2008, 5:21 AM
Post #14 of 14
(525 views)
|
|
Re: [dimilinowski] opening images in perl
[In reply to]
|
Can't Post
|
|
I thought that the picture would open then the program would switch back to the command prompt, display the print value (which it doesn't), then open the 2nd picture, switch back to the command prompt and display the 2nd print value (and it doesn't). Not only that, but when the pictures are opened they open one after the other (very quickly) so that you actually don't have the opportunity to even look or scan the 1st pic, then the 2nd pic opens and stays open (which is good)--and that's not what the real problem is at this particular time, but that the program doesn't switch back to the command prompt without having to use the status bar in Windows to do so. I want it to go open pic, print words, open 2nd pic, print words, stay in c prompt under perl. When you do a system() command, your Perl script is suspended until that command finishes. I suspect the reason the first image disappears so quickly is that explorer finds an error in the image. Open explorer and try viewing the image. What you want to do is a fork. However, in Windows you have to go through the Win32 modules to do it. Since I'm not running Windows, I won't hazard guessing on how to do this. Try asking the perlmonks at www.perlmonks.org/ __END__ I love Perl; it's the only language where you can bless your thingy. Perl documentation is available at perldoc.perl.org. The list of standard modules and pragmatics is available in perlmodlib. Get Markup Help. Please note the markup tag of "code".
|