Jim Gibson wrote:
Joseph L. Casale:
Inside a here doc, how can I force an expression to be evaluated
such as localtime [...]
You can use the trick mentioned in 'perldoc -q string' "How do I expand
function calls in a string?", referencing, then dereferencing an array, but
it is ugly [...]
Harry Putnam wrote:
my %h1 = (
'./b/f1' => 'f1',
'./b/c/fa' => 'fa',
'./b/l/c/f2' => 'f2',
'./b/g/f/r/fb' => 'fb'
);
my %h2 = (
'./b/fb'=> 'fb',
'./b/c/fd' => 'fd',
'./b
Hi all,
When I use Net::SSH::Perl module to connect to a remote computer and start a
long-time job, how can I monitor its status and cancel this job? Thanks.
Regards,
Eric Zhang
On 28 avr, 19:12, trevor.do...@gmail.com (Trev) wrote:
> I'm trying to use Perl to replace a line in a few XML files I have.
>
> Example XML below, I'm wanting to change the Id= part from Id="/Local/
> App/App1" to Id=/App1". I know there's an easy way to do this with
> perl alone however I'm tryi
Shawn H Corey writes:
> Harry Putnam wrote:
>> But, is there an easier way?
>
> Invert both hashes and find the keys in both inverses.
[...]
Thanks for the nice working script... Lots to learn there.
But not sure how to get at the information I asked about with it.
Maybe because there was a t
Harry Putnam wrote:
But, is there an easier way?
Invert both hashes and find the keys in both inverses.
#!/usr/bin/perl
use strict;
use warnings;
use Data::Dumper;
# Make Data::Dumper pretty
$Data::Dumper::Sortkeys = 1;
$Data::Dumper::Indent = 1;
# Set maximum depth for Data::Dumper, zer
Have quite a lot of trouble getting my pea brain around working even
with simple hashs.
What I hope to do is compare hashes and a few different ways.
determine what is in one and not in the other for example.
These exmple hashes are supposed to represent file names.
The hashes are created by ma