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: Changing the structure of a hash

2015-06-17 Thread Anirban Adhikary
Hi All I made a simple solution would like to share with all. also forget to share that every array would have 16 entries, considering my previous hash name is %MAIO_CH_GROUP my @total_array; foreach my $key (sort keys %MAIO_CH_GROUP) { print "KEY=[$key]--VALUE=[@{$MAIO_CH_GROUP{$key}

Re: Changing the structure of a hash

2015-06-17 Thread Jim Gibson
It seems that you are working with a two-dimensional array of numbers, so it is not clear why you are using a hash to store this data instead of an array of arrays. What you seem to be asking for is to generate the transpose of the two-dimensional array. So the simplest approach would be to con

Changing the structure of a hash

2015-06-17 Thread Anirban Adhikary
Hi List I have a hash with the following data structure. KEY=[0]-- VALUE=[57 147 237 327 417 507 597 687 777 867 957 1047 1137 1227 1317 1407] KEY=[1]-- VALUE=[58 148 238 328 418 508 598 688 778 868 958 1048 1138 1228 1318 1408] KEY=[10]--VALUE=[67 157 247 337 427 517 607 697 787 877 967 1057 11

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

Perl Beginners class at the annual Perl Conference [Advertisement]

2015-06-17 Thread Andrew Solomon
On September 1st as a warm-up to the annual Perl conference in Granada, Spain I'll be delivering a crash course on Perl Essentials which will prepare beginners for the talks at the rest of the conference, as well as giving them a 6 month enrolment at Geekuni. http://act.yapc.eu/ye2015/ http://act.