Seeking mystic knowledge:

I am using the Filesys::SmbClientParser module in my program. It is working well with one exception...

I am getting this sprinkled liberally in my output:

Domain=[XXX] OS=[SpinStream2] Server=[Windows 2000 Lan Manager]
What incantation might I chant to exorcise this demon? I have consulted all of the sacred scrolls (Google) to no avail!

SOLUTION: Thanks to monk: your_mother

#!/usr/bin/perl -w use Filesys::SmbClientParser; use Capture::Tiny ':all'; my $smb = new Filesys::SmbClientParser; $smb->Debug(0); $smb->Workgroup('mydomain'); $smb->User('myid'); $smb->Password('mypwd'); $smb->Host('myhost'); $smb->Share('mysharename'); # List content $stderr = capture_stderr { $smb->cd('to/som/directory') or die("cd failed failed: $smb->err, +$!");; }; #<-note the closing ; my @l; $stderr = capture_stderr { @l = $smb->dir or die("List failed failed: $smb->err, $!"); }; #<-note the closing ; foreach (@l) {print $_->{name},"\n";}
And the list of files flow freely without the demonic curses.

In reply to Suppress unwanted text from Filesys::SmbClientParser by paullem

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.