There's more than one way to do things | |
PerlMonks |
Re^3: Activating a screen saver problemsby golux (Chaplain) |
on May 28, 2012 at 04:07 UTC ( [id://972776]=note: print w/replies, xml ) | Need Help?? |
Hi palkia,
By "be in the screensaver directory", I only meant that you have to run my script from wherever the screensavers are located. In my case it's C:\WINNT\system32, in your case it's apparently C:\WINDOWS\system32. But since you're giving the whole path, that's fine too. The #!/usr/bin/perl -w line is not as important in Windows as in Linux, although the -w is quite useful (it enables "warnings"). You can read about "warnings" and "strict" in the perllexwarn documentation. I wrote a screensaver in Perl several years ago (haven't finished it though), and remembered there was a way to invoke a screensaver from the command line. A search quickly led me to the /s switch. Good luck and much enjoyment with your continued path in Perl!
In Section
Seekers of Perl Wisdom
|
|