Re: regular expression for email id and IP address

2011-04-09 Thread Olof Johansson
On 2011-04-10 01:40 +0530, Sunita Rani Pradhan wrote: > Hi Johan s/Johan/Olof/, but who keeps score? > You are right. Thanks for pointing out . Can you help me > getting it correct ? Somebody already mentioned Regex::Common. -- - Olof Johansson - www: http://www.

Re: regular expression for email id and IP address

2011-04-09 Thread Olof Johansson
On 2011-04-09 23:53 +0530, Sunita Rani Pradhan wrote: > Yes it is matching 167.249.0.0 . But it's also matching things like "42". Feature? Read about quantifiers, and also about the precedence of |. -- - Olof Johansson - www: http://www.stdlib.se/ - {mail,xmp

Re: How to recognize apache authentication

2011-04-07 Thread Olof Johansson
that keep this information? $REMOTE_USER, see http://oreilly.com/openbook/cgi/ch02_02.html -- - Olof Johansson - www: http://www.stdlib.se/ - {mail,xmpp}: o...@ethup.se - irc: zibri on Freenode/OFTC/IRCnet/... -- signature.asc Description: Digital signature

Re: Perl packet tracking module

2011-03-23 Thread Olof Johansson
On 2011-03-23 09:05 -0700, Parag Kalra wrote: > Hi, > > Does Perl have any packet tracking module equivalent to tcpdump, snoop, > tshark or tethereal Check out Net::Pcap... -- - Olof Johansson - www: http://www.stdlib.se/ - {mail,xmpp}: o...@ethup.se - irc:

Re: ARGV Error

2011-03-16 Thread Olof Johansson
On 2011-03-16 17:13 +0100, Olof Johansson wrote: > This is your output if the number of arguments isn't what you > expected. Guessing from > > print "firstradar velx vely \n"; > > you probably want to change > > if(@ARGV != 1){ > > to >

Re: ARGV Error

2011-03-16 Thread Olof Johansson
is is your output if the number of arguments isn't what you expected. Guessing from print "firstradar velx vely \n"; you probably want to change if(@ARGV != 1){ to if(@ARGV != 2){ as @ARGV is a list and lists in scalar context is how many elements it contains. Makes sense?