By itself, that does not actually work, and...
perl SomeScript.pl
...will still fail, but I learned from somewhere elsewhere that this does work in combination with the -S switch:
perl -S SomeScript.pl
:)
I have ActiveState Perl installed on a Windows machine.
Now, suppose I have scripts, including one called "SomeScript.pl", in this directory:
"C:\Example\Foo\Bar\"
How do I configure Perl to automatically look in that directory for scripts when it is passed a script path?
For example, from...
I have a large, complicated, multifile (too long to post the full thing here) Perl application which uses LWP.
Recently, to deal with a new input source website which automatically HTTP-compressed its responses, I had to modify the script to change a line from using ($objResponse is an...
To clarify, if you test the following out in the major browsers:
ul { font-size: 24pt; text-decoration: underline; }
ul li { font-size: 12pt; text-decoration: none; }
<ul>Foo
<li>Bar</li>
</ul>
you'll find that "Foo" is rendered at 24 pt and "Bar" is rendered at 12 pt, but strangely...
I'm trying to apply formatting to a list header which should not apply to the list items. I have this CSS:
ul { text-decoration: underline; }
ul li { text-decoration: none; }
and this HTML:
<ul>Should be underlined
<li>Should not be underlined</li>
</ul>
How do I fix the CSS so that the...
Wow, okay, that's so obvious I now feel silly asking the question. %-) I got confused because I work mostly with Linux boxes. Thanks for the quick reply.
Just something I've been puzzled by for a long time: What does the "u" in the "uname" command stand for? The "obvious" answer is "user", but that makes no sense given that the command returns information about the operating system rather than the user.
rharsh's solution unfortunately doesn't work either, as like the "/e" option it involves the evaluation of arbitrary code (it gets kicked with the error message "Eval-group not allowed at runtime").
That's clever, Annihilannic, and I thank you for your efforts, but unfortunately, it doesn't solve my problem.
This isn't just a theoretical question. There is a program which has an interface that allows the user to set a single regex substitution in the middle of a much larger, more complex...
Suppose you have an integer $n and you want to add enough leading zeroes to that integer to make it a certain width in characters (for the examples below, let's say a width of 5.) I'm well aware that this can be done with such ways as
$n = sprintf("%05d", $n);
$n = substr(0 x 5 . "$n", -5)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.