Hi there, wow that is a lot of good response ! i modifyed toolics code the following way:
my $search; if ($cmdout =~ / \n ( .* procdump .*) \n /sx) { $search = $1; print "$search\n"; }

where $cmdout contains the following line:
1038 7ffd4000 00001000 1039 7ffd5000 00001000 1040 7ffd6000 00001000 1041 7ffd7000 00001000 1042 7ffd8000 00001000 1043 7ffd9000 00001000 1044 7ffda000 00001000 1045 7ffdb000 00001000 1046 7ffdc000 00001000 1047 7ffdd000 00001000 1048 7ffdf000 00001000 1049 7ffe0000 00001000 Total memory: 4bbf000 Stream 4: type SystemInfoStream (7), size 00000038, RVA 00000098 Stream 5: type MiscInfoStream (15), size 00000018, RVA 000000D0 Stream 6: type HandleDataStream (12), size 0000A0B0, RVA 000226D7 Stream 7: type CommentStreamW (11), size 0000005C, RVA 000166C7 ' *** procdump -ma ccSvcHst.exe *** Timed dump' Stream 8: type UnusedStream (0), size 00000000, RVA 00000000 Stream 9: type UnusedStream (0), size 00000000, RVA 00000000 Windows Server 2003 Version 3790 (Service Pack 2) MP (2 procs) Free x8 +6 compatib le Product: Server, suite: TerminalServer Debug session time: Thu Oct 20 02:43:30 2011 System Uptime: not available Process Uptime: 0 days 0:08:28.000 The call to LoadLibrary(ext) failed, Win32 error 2 "The system cannot find the file specified." Please check your debugger configuration and/or network access. The call to LoadLibrary(exts) failed, Win32 error 2 "The system cannot find the file specified." Please check your debugger configuration and/or network access. The call to LoadLibrary(uext) failed, Win32 error 2 "The system cannot find the file specified." Please check your debugger configuration and/or network access. The call to LoadLibrary(ntsdexts) failed, Win32 error 2 "The system cannot find the file specified." Please check your debugger configuration and/or network access. No export peb found Finished dump check
so i expected only to get the line
*** procdump -ma ccSvcHst.exe
back. but instead i get the complete output back..

In reply to Re^4: Returning Line where Characters Have been found by apraxas
in thread Returning Line where Characters Have been found by apraxas

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.