Re: How to navigate through a hash of hashes of arrays (?) to get to the first array entry

2016-04-14 Thread Raj Barath
I was wrong. Please don't use my example. Aaron wells explanation is perfect. Apologies for the confusion. -Raj On Thu, Apr 14, 2016 at 11:15 AM, Aaron Wells mailto:chacewe...@gmail.com>> wrote: Hi Kenneth, Welcome aboard (for the nth time)! The replies on this thread have been helpful, but

Re: How to navigate through a hash of hashes of arrays (?) to get to the first array entry

2016-04-14 Thread Raj Barath
I was wrong. Please don't use my example. Aaron wells explanation is perfect. Apologies for the confusion. -Raj On Thu, Apr 14, 2016 at 11:15 AM, Aaron Wells mailto:chacewe...@gmail.com>> wrote: Hi Kenneth, Welcome aboard (for the nth time)! The replies on this thread have been helpful, but

Re: How to navigate through a hash of hashes of arrays (?) to get to the first array entry

2016-04-14 Thread Raj Barath
Hello Kenneth, Check this out: use v5.22; use Data::Dumper; my $VAR1; $VAR1 = [ bless( { 'Id' => [ '01tC003udXAIAY', '01tC003udXAIAY' ], 'type' => 'Product2'

Re: How to navigate through a hash of hashes of arrays (?) to get to the first array entry

2016-04-14 Thread Raj Barath
Hello Kenneth, Check this out: use v5.22; use Data::Dumper; my $VAR1; $VAR1 = [ bless( { 'Id' => [ '01tC003udXAIAY', '01tC003udXAIAY' ], 'type' => 'Product2'

Re: reading directories using perl in windows

2016-03-01 Thread Raj Barath
Try using readdir http://perldoc.perl.org/functions/readdir.html On Tue, Mar 1, 2016, 5:24 AM Arghya Das mailto:arghya0...@gmail.com>> wrote: use warnings; $dir = "c:/folder/*"; my @files = glob( $dir ); foreach (@files ){ print $_ . "\n"; } i am trying to read windows directory using abo

Re: Hash in file Formats

2015-12-16 Thread Raj Barath
Can you share a simple of JSON file and from that let us know what you want to capture. On Wed, Dec 16, 2015, 3:41 PM perl kamal mailto:kamal.p...@gmail.com>> wrote: ++Subject & Thanks. On Thu, Dec 17, 2015 at 1:08 AM, perl kamal mailto:kamal.p...@gmail.com>> wrote: Hi, I am trying to read a

Re: Hash in file Formats

2015-12-16 Thread Raj Barath
Can you share a simple of JSON file and from that let us know what you want to capture. On Wed, Dec 16, 2015, 3:41 PM perl kamal mailto:kamal.p...@gmail.com>> wrote: ++Subject & Thanks. On Thu, Dec 17, 2015 at 1:08 AM, perl kamal mailto:kamal.p...@gmail.com>> wrote: Hi, I am trying to read a

Fwd: regex problem?

2015-11-25 Thread Raj Barath
-- Forwarded message -- From: Raj Barath mailto:barat...@outlook.com>> Date: Wed, Nov 25, 2015 at 1:16 PM Subject: Re: regex problem? To: Rick T mailto:p...@reason.net>> Hi Rick, You can use split. For example: my ( $stud_surname, $stud_number ) = split ( /-/,

Re: Protein fragment recognition!

2015-09-20 Thread Raj Barath
+perl-beginners forgot to hit reply all On Sun, Sep 20, 2015, 7:00 PM Raj Barath wrote: > Hi, > I have added the comments. But to understand even better please go through > the official documentation such as: > http://perldoc.perl.org/index-tutorials.html > > > my %hash

Re: Protein fragment recognition!

2015-09-20 Thread Raj Barath
Hi, Is this is what you're looking for ? my %hash; while( my $line = ){ chomp $line; my ( $scaf, $pro_per ) = $line =~ m/\sHit=(.*?)\s.*?Percent_id=(.*?)$/g; push @{$hash{$1}}, $2; } print Dumper (\%hash); Output: $VAR1 = { 'scaffold293_size341291' => [

Re: Looking for introductory to advanced examples of RESTful programming in Perl

2015-08-11 Thread Raj Barath
You'd have to try any of the web framework for creating RESTful API You can try Mojolicious http://mojolicio.us/perldoc Or you can try dancer2. https://metacpan.org/pod/Dancer2::Cookbook#Writing-a-REST-application https://metacpan.org/pod/Dancer2::Tutorial

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 2/8 as output; > > print %hash."\n"; > > output

Re: Creating PDF file from text

2015-05-15 Thread Raj Barath
You can use PDF create module from cpan. http://search.cpan.org/~szabgab/PDF-Create-1.10/lib/PDF/Create.pm -Raj On May 15, 2015 2:26 AM, "Francisco Valladolid H." wrote: > Hi Folks. > > I have a script in Perl that read a CVS file with several fields, it > extract only user and password field