Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Perl Monks User Search

( #6364=superdoc: print w/replies, xml ) Need Help??

This is where you can search for all the writeups contributed by any user. Just enter the user name and select the order for the search.

Author: Show nodes
Order by: starting at .
Node Type: Show Categorized Q&A (Why?)

Or try a Super Search


These nodes all have stuff by nithins (showing 1-37 out of ~37?):

Node ID Writeup Created
1072655 Re^2: Hash of Arrays (populating and iterating) 2014-01-30 09:44
1072631 Re: Counting elements in array 2014-01-30 06:52
1071571 Re: Files/Properties: Not able to open file from properties file 2014-01-22 07:41
1071463 Re: How to perform single operation to each line in file 2014-01-21 12:49
1070900 Re: How to save the output result in file 2014-01-17 06:43
1069923 Re^2: How to go about web development using perl 2014-01-09 08:18
1069919 How to go about web development using perl 2014-01-09 07:27
1069770 After system call, scripts is getting terminated 2014-01-08 11:34
1069737 Re: mail from one email id to other email id 2014-01-08 08:24
1069614 Re: Replace a string after a word 2014-01-07 07:16
1069470 Replace a string after a word 2014-01-06 08:35
1063478 SSH2.pm doesn't have "getpwuid" function 2013-11-20 07:50
1063451 Re^2: Net::SSH2 related query 2013-11-20 06:26
1063327 Re: Net::SSH2 related query 2013-11-19 13:20
1063318 Net::SSH2 related query 2013-11-19 12:30
1063283 Not able to install Net::SSH::Perl module 2013-11-19 06:24
1050504 How to export files from svn? 2013-08-22 10:22
1050476 Automating java code build process using perl?? 2013-08-22 07:41
1029276 Obtaining server status?? 2013-04-18 07:42
1023656 Re: How to get a Indian Rupee symbol? 2013-03-15 10:14
1023642 Re: How to get a Indian Rupee symbol? 2013-03-15 08:57
1023401 How to get a Indian Rupee symbol? 2013-03-14 07:27
1016667 Re: read file from ARGV 2013-02-02 07:33
1016652 Re: Parellel module that has functionalities like net::sftp 2013-02-02 06:27
1016017 Parellel module that has functionalities like net::sftp 2013-01-30 10:30
1014570 Re: what does "$@" mean? 2013-01-22 04:54
1013736 Re: create tables with text and images in pdf 2013-01-17 09:33
1012211 Re: Open a folder 2013-01-08 10:03
1011007 Re: Storing data into hashes 2012-12-31 06:50
1010648 Re: Removing elemets from an array 2012-12-28 06:38
1008787 Re: extracting data from a file 2012-12-14 07:21
1008783 Re: if statement question 2012-12-14 06:57
1008780 Re: / operator question 2012-12-14 06:24
1007529 Re^4: How to split an integer?? 2012-12-06 10:51
1007508 How to split an integer?? 2012-12-06 10:10
1007262 Re: integer value to hex value 2012-12-05 11:01
1007088 Re: replace a character based on rule file 2012-12-04 13:24
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
[shmem]: ..the result from the pattern match
[Lady_Aleena]: tobyink, I did after I failed to get the BLOCK to work. I can't seem to get my brain around grep BLOCK, though I'm okay with grep EXPR.
[shmem]: so in the second example grep returns all true elements of the list passed
[Lady_Aleena]: Okay, so grep BLOCK is not like map BLOCK where something might need to be returned at the end.
[tobyink]: grep { $_ =~ /.*$in.*/; } @my_modules should work just fine. The problem is that you were adding on ;$_ at the end of the block. Why were you doing that?
[Lady_Aleena]: tobyink, I was thinking map.
[tobyink]: Something does need to be returned at the end not $_ though. You need to return (something that will be evaluated as) a boolean.
[Lady_Aleena]: Here is a longish map I did in the same script. my @my_modules = map { my $file = $_; $file =~ s/$module_director y(.+)\.pm/$1/; $file =~ s/\//::/g; $file; } @files;
[Lady_Aleena]: I spent half an hour trying to figure out why map was rewriting @files.
[tobyink]: If you like map you can do map { ($_ =~ /.*$in.*/) ? $_ : () } @my_modules and it will work just the same. grep is neater though.

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (9)
As of 2017-05-27 07:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?