Fair point, Kirsle. I should have read the original post properly.
Apologies,
fish
["]As soon as we started programming, we found to our surprise that it wasn't as easy to get programs right as we had thought. Debugging had to be discovered. I can remember the exact instant when I...
The easiest and most standard way is with the CSS directive:a:hover { cursor: hand }
This needs to be placed in the stylesheet within your page header.
Yours,
fish
["]As soon as we started programming, we found to our surprise that it wasn't as easy to get programs right as we had...
What do you mean by "on the windows system"?
If they are in your windows environment, you can access them as@lines = $t->cmd("/cc/ac_scr.sh $ENV{CL} $ENV{EA}");
Yours,
fish
["]As soon as we started programming, we found to our surprise that it wasn't as easy to get programs right as we...
I'd use Lingua::EN::NameParse (http://search.cpan.org/~kimryan/Lingua-EN-NameParse-1.24/lib/Lingua/EN/NameParse.pm), which handles most of the problems you are likely to encounter.
Yours,
fish
["]As soon as we started programming, we found to our surprise that it wasn't as easy to get...
Have you found http://search.cpan.org/dist/Spreadsheet-WriteExcel/charts/charts.pod?
Yours,
fish
["]As soon as we started programming, we found to our surprise that it wasn't as easy to get programs right as we had thought. Debugging had to be discovered. I can remember the exact...
Printers use several different command sets (normally referred to as emulations), some of which don't respect form-feeds. Your printer manual will tell you the correct escape sequence to use.
It would be more resilient to use a library to drive the printer rather than having to change your...
This sounds more like a unix problem than a perl problem. If you use another telnet client and issue the same command, do you get the same problem?
There are many reasons why the daemon might exit but the most likely one is that it detects the end of the telnet session. The kernel will...
I don't know of a pure perl solution but both cygwin and the Windows Server 2003 Resource Kit (and possibly other resource kits) contain a untility called fuser, which will list the processes which currently have a given path open.
Yours,
fish
["]As soon as we started programming, we...
You could use Paul's technique to get the extension as well - simply split on a period rather than a forwardslash.
Yours,
fish
["]As soon as we started programming, we found to our surprise that it wasn't as easy to get programs right as we had thought. Debugging had to be discovered...
This is a "feature" of every computer language. Just as some innocent-looking fractions have infinite decimal expansions (1/3 = 0.33333333..) the same is true in binary and, indeed, every number base, although precisely which fractions terminate and which don't varies with the chosen base.
For...
There is no practical distinction between $format and "$format" and both the code fragments you posted produce identical results. I think you had a problem with your test procedure.
Yours,
fish
["]As soon as we started programming, we found to our surprise that it wasn't as easy to get...
Crypt::RC4 is pure perl, so can't you just copy it to your scripts directory and use lib?
Yours,
fish
["]As soon as we started programming, we found to our surprise that it wasn't as easy to get programs right as we had thought. Debugging had to be discovered. I can remember the exact...
If you show us the code you have so far, it will be easier for us to understand the level of help you require.
Yours,
fish
["]As soon as we started programming, we found to our surprise that it wasn't as easy to get programs right as we had thought. Debugging had to be discovered. I...
The "line 44" refers to some code being evaluated, so it is possibly in one of the templates. Your best approach to solving this is with a debugger. If you have an X server or a TK installation, I'd recommend Devel::ptkdb and start your script with perl -d:ptkdb myscript. If you cannot get...
my $h1 = new header; # construction
$h1->hashtable( colour => 'red' ); # assignments...
$h1->hashtable( size => 6 );
$h1->hashtable( type => 'rubber' );
print $h1->hashtable( 'type' ), "\n"; # print a value seems to be the Class::Struct way of doing things.
I confess, I've not felt a need for...
I've not used Class::Struct, but it's manual page offersstruct header => {
customer => '$',
type => '$',
shares => '$',
hashtable => '%'
};
Does this not work for you?
Yours
fish
["]As soon as we started programming, we found to our surprise that it wasn't as easy to...
$myfix2 =~ /$key2/i is true because $myfix2 contains $key2. $key2 does not contain $myfix2 so your expression is false.
Yours,
fish
["]As soon as we started programming, we found to our surprise that it wasn't as easy to get programs right as we had thought. Debugging had to be...
I'd stongly recommend using the CGI library. You're going to be constantly tripped up by the complexities of http otherwise and end up reinventing a lot of wheels.
Yours,
fish
["]As soon as we started programming, we found to our surprise that it wasn't as easy to get programs right as...
if you want to search for the exact words, why not use = instead of LIKE?
You don't say what database you are using, so I can't be specific, but it also sounds like you are running into problems with trailing spaces in datavalues.
You may be able to set trailing space truncation on your...
$name =~ s/\b(\w)(\w+)/uc($1).lc($2)/eg;
The /b matches a zero-width word boundary, including the beginning of the string.
The /e modifer permits code in the substitution, so we can use the lc() and uc() functions with the . operator.
The /g modifier runs the substitution multiple times...
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.