Re: Help to store the result in some other file

2011-11-20 Thread Shlomi Fish
Hi Saravanan, On Mon, 21 Nov 2011 12:15:43 +0530 Saravanan Murugaiah wrote: > Dear All, > > I want to search a particular word in some set of files, which are kept in > a directory. In this, I want to display the search result in some other out > file like including the line number with file na

Re: About hashes and file processing

2011-11-20 Thread Shlomi Fish
Hello Raito, some comments on your code: On Sun, 20 Nov 2011 21:52:46 -0600 Raito Garcia wrote: > Hi everybody > > Well I have some problems with my mind, becouse I left programming perl a > couple of years, but right now I need to use it again. > > The main problem is how uses hashes with la

Help to store the result in some other file

2011-11-20 Thread Saravanan Murugaiah
Dear All, I want to search a particular word in some set of files, which are kept in a directory. In this, I want to display the search result in some other out file like including the line number with file name, etc. For example, if I want to search the word "Good Try" in all the files in a direc

Re: About hashes and file processing

2011-11-20 Thread Jim Gibson
At 9:52 PM -0600 11/20/11, Raito Garcia wrote: Hi everybody Well I have some problems with my mind, becouse I left programming perl a couple of years, but right now I need to use it again. The main problem is how uses hashes with large file to processing it. For example I have a lot of this lin

About hashes and file processing

2011-11-20 Thread Raito Garcia
Hi everybody Well I have some problems with my mind, becouse I left programming perl a couple of years, but right now I need to use it again. The main problem is how uses hashes with large file to processing it. For example I have a lot of this lines: 192.168.1.100,tcp,445,SMB,10456,Windows ,CV

Re: Customizing vi/vim for Perl

2011-11-20 Thread Phil Dobbin
On 20/11/11 22:57, "Phil Dobbin" wrote: > `let g:Perl_GlobalTemplateFile = $HOME. '/.vim/templates/Templates'` & so on > for modules, scripts, etc... One final question on this. How can I get vim to recognise the perl in /usr/local/bin rather than the System one. My .bash_profile sets it correct

Re: Customizing vi/vim for Perl

2011-11-20 Thread Phil Dobbin
On 20/11/11 21:02, "Phil Dobbin" wrote: > I put :set numbers in $HOME/.vimrc & it worked fine. > > I'll give re-installing a go. Re-install resulted in the same non working plugin but, however, inserting these lines in my .vimrc did the trick: `let g:Perl_GlobalTemplateFile = $HOME. '/.vim/tem

Re: Customizing vi/vim for Perl

2011-11-20 Thread Phil Dobbin
On 20/11/11 20:41, "Dermot" wrote: > What I'd suggest is that you put a syntax error in you .vimrc > (somthing like ':foobarbaz') to see if your vimrc is being used. Your > OS may set things up differently. It may use $home/.vimrc or > /etc/something. Once you know that which initialisation file

Re: Customizing vi/vim for Perl

2011-11-20 Thread Dermot
On 20 November 2011 20:13, Phil Dobbin wrote: > On 20/11/11 19:25, "Dermot" wrote: > >>> Take a look to http://www.vim.org/scripts/script.php?script_id=556 >> >> I'd second this endorsement for these perl support script. I never use >> the menus but I've find the braces and syntax hight-lighting

FW: Customizing vi/vim for Perl

2011-11-20 Thread Phil Dobbin
On 20/11/11 19:25, "Dermot" wrote: >> Take a look to http://www.vim.org/scripts/script.php?script_id=556 > > I'd second this endorsement for these perl support script. I never use > the menus but I've find the braces and syntax hight-lighting really > useful. I installed perl-support as per ins

Re: Manipulating reference to array of array references

2011-11-20 Thread Chris Charley
"Mohan L" wrote in message news:cadihtmt4rqntknjlgsimpgqv9xuc89dryhtx00ctwbknxwd...@mail.gmail.com... Dear all, #!/usr/bin/env perl #dummy.pl use strict; use warnings; use Data::Dumper; my $ref_to_AoA = [ [ "fred", "barney",undef,"pebbles", "bambam", "dino", ], [ "homer",und

Re: Customizing vi/vim for Perl

2011-11-20 Thread Dermot
On 18 November 2011 18:44, Juan Luis Aranda wrote: > 2011/11/18 Parag Kalra : >> Hi, >> >> I generally use vi/vim for my day to day Perl scripts. >> >> What are different packages I can use to make vi/vim extensively customized >> for Perl.  For example -  it should be able inform me about the kno

Re: Manipulating reference to array of array references

2011-11-20 Thread Rob Dixon
On 19/11/2011 18:21, Mohan L wrote: Dear all, #!/usr/bin/env perl #dummy.pl use strict; use warnings; use Data::Dumper; my $ref_to_AoA = [ [ "fred", "barney",undef,"pebbles", "bambam", "dino", ], [ "homer",undef,"bart",undef, "marge", "maggie", ], [ "george", "jane",u