Greetings monks,
I am a very inexperienced perl coder.
I am using perl, v5.6.1 built for MSWin32-x86-multi-thread (ActiveState build 633) on Windows XP.
Out of pure laziness in not wanting to have to click several bookmarks each time I open my browser, I am trying write a short script that open a new Mozilla window, and then pass the -remote command line option to it a few times to open tabs of the URLs that I want to view.
It opens mozilla just fine, but it never seems to get to the last three lines. Is this a place where my complete noncomprehension of the fork command is hindering me?
I tried reading about exec, system, and fork on
perl.com, but I got confused when it started talking about zombies. I know that this is probably very simple, but I'm getting a bad case of RTFM burnout.
Here's what I have so far:
#!/usr/bin/perl -w
use strict;
local $ENV{"PATH"} = "c:/progra~1/mozilla.org/Mozilla";
system ("mozilla") || die "can't open mozilla";
system ("mozilla -remote openURL (www.perlmonks.org, new-tab)");
system ("mozilla -remote openURL (www.metafilter.org, new-tab)");
system ("mozilla -remote openURL (www.slashdot.org, new-tab)");
Edit: $title =~ s/Confusued/Confused/, per request. larsen
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.