Re: Strange Behaviour while string concatenation

2008-02-12 Thread Chas. Owens
On Feb 12, 2008 5:51 AM, Rajpreet <[EMAIL PROTECTED]> wrote: > Greetings, > > I am trying to append an alphabetical counter to a string. But > concatenation shows a very strange behaviour in this case. Can some > one please help? > > The piece of code looks like : > > $self->{"log"}->debug(" In Fun

Strange Behaviour while string concatenation

2008-02-12 Thread Rajpreet
Greetings, I am trying to append an alphabetical counter to a string. But concatenation shows a very strange behaviour in this case. Can some one please help? The piece of code looks like : $self->{"log"}->debug(" In Function _process_array_data. "); $self->{"log"}->debug(" temp 4,data[11],c

Re: String concatenation qn

2004-01-25 Thread Ajey Kulkarni
Thanks a ton to all. On Sat, 24 Jan 2004, drieux wrote: > > On Jan 23, 2004, at 5:24 PM, wolf blaum wrote: > > > For Quality purpouses, Ajey Kulkarni 's mail on Saturday 24 January > > 2004 17:52 > > may have been monitored or recorded as: > > > >> i would like to quickly append a string to a

Re: String concatenation qn

2004-01-24 Thread drieux
On Jan 23, 2004, at 5:24 PM, wolf blaum wrote: For Quality purpouses, Ajey Kulkarni 's mail on Saturday 24 January 2004 17:52 may have been monitored or recorded as: i would like to quickly append a string to a variable. open NEWFH, "> $filename.new" or die "new procmailrc err"; where $filename

Re: String concatenation qn

2004-01-23 Thread Wiggins d'Anconia
wolf blaum wrote: For Quality purpouses, Ajey Kulkarni 's mail on Saturday 24 January 2004 17:52 may have been monitored or recorded as: hi,. hi i would like to quickly append a string to a variable. open NEWFH, "> $filename.new" or die "new procmailrc err"; where $filename has /tmp/xyz Anyth

Re: String concatenation qn

2004-01-23 Thread wolf blaum
For Quality purpouses, Ajey Kulkarni 's mail on Saturday 24 January 2004 17:52 may have been monitored or recorded as: > hi,. hi > i would like to quickly append a string to a variable. > open NEWFH, "> $filename.new" or die "new procmailrc err"; > where $filename has /tmp/xyz > > Anything reall

String concatenation qn

2004-01-23 Thread Ajey Kulkarni
hi,. i would like to quickly append a string to a variable. Suppose $filename has "/tmp/xyz after appending i want to get $filename as /tmp/xyz.NEW. I'm getting a ? for a . (period). I'm doing something like open NEWFH, "> $filename.new" or die "new procmailrc err"; where $filename has /tmp/xyz

Re: uninitialized string concatenation?

2003-09-09 Thread James Edward Gray II
On Tuesday, September 9, 2003, at 08:03 AM, LoneWolf wrote: Ok, this has me bewildered. I have added some fields to a pipe-delimited file and added the keys to the switch to chomp each line correctly. I am using the same lines of code that I had before, but now when I run the script I get 'Us

uninitialized string concatenation?

2003-09-09 Thread LoneWolf
Ok, this has me bewildered. I have added some fields to a pipe-delimited file and added the keys to the switch to chomp each line correctly. I am using the same lines of code that I had before, but now when I run the script I get 'Use of uninitialized value in concatenation (.) or string at logs.

Re: string concatenation

2003-06-19 Thread Jenda Krynicky
From: "Miguel Angel Morales" <[EMAIL PROTECTED]> > Thank you very much Jenda, I used the code > > > $hex = unpack('H*', $servidor); > > $hex =~ s/(..)/$1 /g; > > print $hex; > > you send me and at the end of the register appears the 0D 0A hex > characters, so this should be the problem. How can I

Re: string concatenation

2003-06-19 Thread Miguel Angel Morales
able? Thanks again, Miguel Angel - Original Message - From: "Jenda Krynicky" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 19, 2003 1:10 PM Subject: Re: string concatenation > From: "Miguel Angel Morales" <[EMAIL PROTECTED]> > >

Re: string concatenation

2003-06-19 Thread Jenda Krynicky
From: "Miguel Angel Morales" <[EMAIL PROTECTED]> > Hi All! I have a problem concatenating strings and I will be very > grateful if you could help me because I'm going crazy: > > I'm using the telnet library for connecting to a router and executing > the following command: > > $t->cmd("ip $nombre

string concatenation

2003-06-19 Thread Miguel Angel Morales
Hi All! I have a problem concatenating strings and I will be very grateful if you could help me because I'm going crazy: I'm using the telnet library for connecting to a router and executing the following command: $t->cmd("ip $nombre $servidor -prefix_len 126 -destination_ip_address $cliente -con

Re: String concatenation in ?: structure.

2001-05-17 Thread Jeff Pinyan
On May 17, Peter Cornelius said: >$returnCode eq "o.k." ? $subject .= " -OK-" : $subject .= " -FAILED-"; You're being bitten by precedence. ?: is stronger than .=, so your code is like: ($foo == 1 ? $bar .= "this" : $bar) .= "that"; Which means that if $foo is 1, $bar gets "thisthat" tacked

String concatenation in ?: structure.

2001-05-17 Thread Peter Cornelius
bject .= " -OK-" : $subject .= " -FAILED-"; print "$subject\n"; #prints "Status -OK- -FAILED-" my $subject = "Status"; $subject .= $returnCode eq "o.k." ? " -OK-" : " -FAILED-"; print $subject; #prints "Status