Re: double substitution

2011-09-19 Thread Rob Dixon
On 20/09/2011 02:17, Jim Gibson wrote: On 9/19/11 Mon Sep 19, 2011 5:56 PM, "Rajeev Prasad" scribbled: $string="alpha number='42'" $string=~s/.*\=// ; $string=~s/\'//g; to get 42 and not '42' can these two substitutions be combined? If you know what you want to extract, then use capturin

Re: Can't use string ("1") as a HASH ref while "strict refs"

2011-09-19 Thread Rob Dixon
On 20/09/2011 01:11, Parag Kalra wrote: I was getting this error message for one of my script. The reason came out out to be, I had not place a semi-colon at the end of try-catch block. try { something } catch some_exception { do something } After I placed the semi-colon, I am no longe

Re: double substitution

2011-09-19 Thread Jim Gibson
On 9/19/11 Mon Sep 19, 2011 5:56 PM, "Rajeev Prasad" scribbled: > $string="alpha number='42'" > $string=~s/.*\=// ; > $string=~s/\'//g; > > to get 42 and not '42' > > > can these two substitutions be combined? If you know what you want to extract, then use capturing: if( $string =~ /'(\d+)

Re: double substitution

2011-09-19 Thread Rob Dixon
On 20/09/2011 01:56, Rajeev Prasad wrote: $string="alpha number='42'" $string=~s/.*\=// ; $string=~s/\'//g; to get 42 and not '42' can these two substitutions be combined? Hi Rajeev Well they can be combined, and because it is far from obvious what your code is doing I think it should be r

Re: Can't use string ("1") as a HASH ref while "strict refs"

2011-09-19 Thread Jim Gibson
On 9/19/11 Mon Sep 19, 2011 5:11 PM, "Parag Kalra" scribbled: > Hi, > > I was getting this error message for one of my script. > > The reason came out out to be, I had not place a semi-colon at the end of > try-catch block. > > try { >something > } catch some_exception { > do something

double substitution

2011-09-19 Thread Rajeev Prasad
$string="alpha number='42'" $string=~s/.*\=// ; $string=~s/\'//g; to get 42 and not '42' can these two substitutions be combined? thank you. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Can't use string ("1") as a HASH ref while "strict refs"

2011-09-19 Thread Parag Kalra
Hi, I was getting this error message for one of my script. The reason came out out to be, I had not place a semi-colon at the end of try-catch block. try { something } catch some_exception { do something } After I placed the semi-colon, I am no longer getting this error (Can't use string (

Re: Jennifer the starlet

2011-09-19 Thread Bob goolsby
The Young and the RESTless Perls of Our Lives On Mon, Sep 19, 2011 at 11:14 AM, Steve Berg wrote: > > > This has become another long message. I am copying it to your email. > > > > I suspect that Jennifer is deleting my messages without reading them, as > > I sent her a text recently to ask her

Re: Jennifer the starlet

2011-09-19 Thread Steve Berg
> This has become another long message. I am copying it to your email. > > I suspect that Jennifer is deleting my messages without reading them, as > I sent her a text recently to ask her to contact Gma as she was unwell. > She has had no contact from J for several weeks, although she told me > th

Jennifer the starlet

2011-09-19 Thread Rob Dixon
This has become another long message. I am copying it to your email. I suspect that Jennifer is deleting my messages without reading them, as I sent her a text recently to ask her to contact Gma as she was unwell. She has had no contact from J for several weeks, although she told me that Jennie s

Re: how to use Net::OpenSSH::Parallel

2011-09-19 Thread salvador fandino
On Sat, Sep 17, 2011 at 6:15 PM, Rajeev Prasad wrote: > Hi Salva, > Thx for responding. I need to SSH into several nodes and run some commands > there and capture the modified output to a file on local node from where the > script is run. The easiest way to do that with Net::OpenSSH::Parallel is