Re: Win 32 memory access

2005-08-28 Thread Alejandro Santillan Iturres
Bill, playing around a bit more with Win32::Process::Memory, I've noticed this bit of code: # search a sequence of unsigned int16 print "\nFind a sequence of unsinged int16:\n"; my @results = $proc->search_u16(92, 87, 105, 110, 51, 50); print $proc->hexdump($_, 0x32)."\n" foreach @results;

Re: RegEx

2005-08-28 Thread Eric Amick
On Sun, 28 Aug 2005 12:05:07 -0700, you wrote: >Newbie to RegEx so though I would start with something really easy. My big >mistake > > > >Problem > >If the string does not contain a trailing \ then add one. $string .= "\\" unless $string =~ /\\$/; or, if you prefer, $string .= "\\" if $string

RegEx

2005-08-28 Thread Ken Y. Brown
Newbie to RegEx so though I would start with something really easy. My big mistake   Problem If the string does not contain a trailing \ then add one.   I can do it the hard way i.e. using substrings etc. but have no idea in regex – I think it’s something to do with \\ and $ but not wh