Hi,
I have made a script where I can extract lines from my apache logfile based on ip adresses. As I'm quite new to perl I know that the script I have made isnt efficient at all. So I wonder if anyone could help me a bit and give som tips how to do it better.
#!/usr/bin/perl
use warnings...
Hi,
Is it possible to change a keyname in a hash? My keys values in the hash references to arrays. I have a option in my script where you can change the information in the hash.
chomp($hash{$matching_keys[$val]}[0]=<STDIN>);
chomp($hash{$matching_keys[$val]}[1]=<STDIN>)...
Yes I mean contain, pardon my english. So if I have these keys for example:
sometest
some test
testing
other keys
If I search for "test" I want to get the first three keys.
Hi,
I have made a data structure that consists of hash and the keys referencing to arrays. The key names comes from the first elements in the array it referencing to. The thing I trying to accomplish is to be able to search trough all keys and print all that matches the string. From the keys...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.