[Boston.pm] not regular expression

2011-03-23 Thread Greg London
I'm dealing with a perl gui tool that has a regular expression search tool.
The tool takes whatever is in the gui window and then does a regularexpre
ssion search through a bunch fo fields.

THe thing is the text variable isn't within my control and the gui doesn't
let me select ~= or !~. It's always doing the functional equivalent of:

$somehiddenvariable ~= m/my regular expression/

Is there a way in a regular expression between m// to make it behave as if
it were

$somehiddenvariable !~ m/my regular expression/

Even though the code is doing ~=?

???

Greg


___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


Re: [Boston.pm] not regular expression

2011-03-23 Thread Ben Tilly
Try ^(?!.*pattern here)

On Wed, Mar 23, 2011 at 1:14 PM, Greg London em...@greglondon.com wrote:
 I'm dealing with a perl gui tool that has a regular expression search tool.
 The tool takes whatever is in the gui window and then does a regularexpre
 ssion search through a bunch fo fields.

 THe thing is the text variable isn't within my control and the gui doesn't
 let me select ~= or !~. It's always doing the functional equivalent of:

 $somehiddenvariable ~= m/my regular expression/

 Is there a way in a regular expression between m// to make it behave as if
 it were

 $somehiddenvariable !~ m/my regular expression/

 Even though the code is doing ~=?

 ???

 Greg


 ___
 Boston-pm mailing list
 Boston-pm@mail.pm.org
 http://mail.pm.org/mailman/listinfo/boston-pm


___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm


[Boston.pm] File::Slurp 9999.14 is released

2011-03-23 Thread Uri Guttman

hi all,

File::Slurp .14 is released and on cpan. many changes and
improvements were made. it's been way too long for an update but it is
finally here. the next version will be out in a few months with some
more new features (see the TODO file). the changes are below

i want to give thanks to all the feedback, brickbats and rotten tomatoes
i got at the last meeting! :)

thanx,

uri

.14   Sun Mar 20 16:26:47 EDT 2011
- Added LICENCE (same as perl) to POD
- Added special faster code to slurp in small text files which
  is a common case
- Rewrote the extras/slurp_bench.pl script. It has a full
  legend, better CLI options, size is selectable, benchmark
  entries have more consistant names and it compares the new
  fast slurp for small files to the general slurp code.
Thanks to Mark Friendlich
- Cleaned up pod
- Added more Synopsis examples
- Added t/error.t to actually test error conditions. Previous
  error.t was renamed to error_mode.t which better reflects its
  tests.
- t/error.t uses a new test driver module. this may get used by
  other tests in the future.
- Fixed check for SEEK_SET and other constant subs being defined
- Added support for binmode other than :raw and binmode.t test
Thanks to Martin J. Evans, Peter Edwards, Bryce Nesbitt
- Added support for perms option in write_file and perms.t test
Thanks to Peter Corlett and Paul Miller
- Added check to the rename call in atomic mode. Tested in error.t.
Thanks to Daniel Scott Sterling
- Added POD to state that using scalar_ref or buf_ref will be faster
  and save memory due to not making a copy
Thanks to Peter Edwards
- read_file in list mode keeps data tainted
Thanks to Sébastien Aperghis-Tramoni
- read_file checks for an overloaded object to get the file
  name. 
Thanks to Sébastien Aperghis-Tramoni




-- 
Uri Guttman  --  u...@stemsystems.com    http://www.sysarch.com --
-  Perl Code Review , Architecture, Development, Training, Support --
-  Gourmet Hot Cocoa Mix    http://bestfriendscocoa.com -

___
Boston-pm mailing list
Boston-pm@mail.pm.org
http://mail.pm.org/mailman/listinfo/boston-pm