Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Need help with a simple perl script

by Neighbour (Friar)
on May 23, 2012 at 08:45 UTC ( #971984=note: print w/replies, xml ) Need Help??


in reply to Need help with a simple perl script

For someone who's "fairly new" to perl, this is some heavy-duty code :)
The thing is...When I run the code on a linux-system with perl 5.10.1, I'm getting the results exactly like your desired outcome.
What environment (OS, perl version) are you running your script on?
  • Comment on Re: Need help with a simple perl script

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://971984]
help
Chatterbox?
[Lady_Aleena]: Why does grep(/.*$in.*/, @my_modules) work but grep { $_ =~ /.*$in.*/; $_ } @my_modules not work? What did I do wrong in the second?

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