Re: Getting 2/8 as output

2015-06-17 Thread Uri Guttman
On 06/17/2015 10:01 PM, Mike Flannigan wrote: Thank you. I stand corrected. Interestingly, if you do "perldoc -q $," it does not explain $, but instead goes into some system with >> as the prompt. you need to escape the $ from the shell. also you can use perldoc -v to get info on any builtin

Re: Getting 2/8 as output

2015-06-17 Thread Mike Flannigan
Thank you. I stand corrected. Interestingly, if you do "perldoc -q $," it does not explain $, but instead goes into some system with >> as the prompt. Mike On 6/17/2015 8:43 AM, Andy Bach wrote: Actually there is a $, - array display separator. http://perlmaven.com/output-field-separator

Re: Getting 2/8 as output

2015-06-17 Thread Shawn H Corey
On Wed, 17 Jun 2015 08:29:10 -0500 Mike Flannigan wrote: > If I am not mistaken there is no $, variable in Perl. > Correct me if I am wrong. http://perldoc.perl.org/perlvar.html and search for /\$OUTPUT_FIELD_SEPARATOR/ -- Don't stop where the ink does. Shawn -- To unsubscribe, e-ma

Re: Getting 2/8 as output

2015-06-17 Thread Andy Bach
Actually there is a $, - array display separator. http://perlmaven.com/output-field-separator-and-list-separator On Wednesday, June 17, 2015, Mike Flannigan wrote: > > If I am not mistaken there is no $, variable in Perl. > Correct me if I am wrong. > > I suspect that was supposed to be $/. > >

Re: Getting 2/8 as output

2015-06-17 Thread Mike Flannigan
If I am not mistaken there is no $, variable in Perl. Correct me if I am wrong. I suspect that was supposed to be $/. Mike On 6/17/2015 7:32 AM, beginners-digest-h...@perl.org wrote: { local $, = "\n"; print %test; } -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For add

Re: Getting 2/8 as output

2015-06-15 Thread Chankey Pathak
See this http://stackoverflow.com/questions/6723172/what-is-4-16-in-hashes On 13-Jun-2015 10:09 pm, "rakesh sharma" wrote: > Hi > > I am printing a hash but I tried to concatenate the new line operator and > I am getting 2/8 as output; > > print %hash."\n"

Re: Getting 2/8 as output

2015-06-15 Thread Steve Hart
{ local $, = "\n"; print %test; } On Sat, Jun 13, 2015 at 9:37 AM, rakesh sharma wrote: > Hi > > I am printing a hash but I tried to concatenate the new line operator and > I am getting 2/8 as output; > > print %hash."\n"; > > output is 2/8. I am

Re: Getting 2/8 as output

2015-06-15 Thread Shlomi Fish
Hi Sumathi, first of all note this: http://www.shlomifish.org/philosophy/computers/netiquette/email/start-new-thread.html On Mon, 15 Jun 2015 13:12:53 +0530 suMathI gOkuL wrote: > Hi Friends, > > Please suggest me some idea to write perl code to join multiple lines into > single line after a

Re: Getting 2/8 as output

2015-06-15 Thread suMathI gOkuL
keys %hash ){ >> print $_ => $hash{$_}. "\n"; >> } >> On Jun 13, 2015 1:40 PM, "rakesh sharma" >> wrote: >> >>> Hi >>> >>> I am printing a hash but I tried to concatenate the new line operator >&g

Re: Getting 2/8 as output

2015-06-13 Thread Илья Рассадин
;> I am printing a hash but I tried to concatenate the new line operator and >> I am getting 2/8 as output; >> >> print %hash."\n"; >> >> output is 2/8. I am not able to make the output. 2 could be the items in >> the hash, which in my case was 2. >> Any inputs? >> >> thanks >> rakesh >> >

Re: Getting 2/8 as output

2015-06-13 Thread Raj Barath
You can go over the hash using for loop like for ( keys %hash ){ print $_ => $hash{$_}. "\n"; } On Jun 13, 2015 1:40 PM, "rakesh sharma" wrote: > Hi > > I am printing a hash but I tried to concatenate the new line operator and > I am getting

Getting 2/8 as output

2015-06-13 Thread rakesh sharma
Hi I am printing a hash but I tried to concatenate the new line operator and I am getting 2/8 as output; print %hash."\n"; output is 2/8. I am not able to make the output. 2 could be the items in the hash, which in my case was 2.Any inputs? thanksrakesh