What is equivalent grep -vin Perl?
grep -v
The code looks like this:
@files = reversegrep(/^[ ]+$/, @files);
I want to @fileshave a list of all file names that are not empty.
@files
You can use negation in an expression or block:
@files = grep !/^\s+$/, @files;
See perldoc grep .
Source: https://habr.com/ru/post/1775382/More articles:How can I manipulate the contents of an extjs panel as I can a DOM element? - extjsImplementing PHP Coding Standards - coding-styleImplement JVM workflow distribution and multicore processors - javaCreating a SOAP Service Using C # - httpCode Exchange between Flex and AIR - flexClip: PDF thumbnail has invalid content_type on S3 - ruby | fooobar.comHow to see in MSDN only properties / methods added by the .NET class, and not inherited? - .netКак фильтровать список SharePoint с использованием запроса CAML? - c#Visual Studio 2010 vs Visual Studio 2005 for C ++ - c ++What is faster SELECT * or SELECT `field` when only a" field "is required - sqlAll Articles