Hey all! It's been a while since I last really worked with Perl - with my school completely moving to Java, and with my classes taking up nearly 100% of my time, I haven't had a chance to dive into a big 'ol project lately - well, now I going to.
Basically, I am fiddling around with
Filesys::SmbClientParser (sorry, I forgot the PM syntax for linking to modules - any help?), which parses the output of the
smbclient binary. My problem is that sometimes I get error messages that are of no importance, but that are sent to STDERR - I want to be able to catch these error messages
before they get to the screen and send them somewhere more useful (a log, maybe).
As I have been working with Java a lot lately, I am hooked on Exception Handling in Java, and it seems like this would be a similar situation - however, I have never worked with any of Perl's error handling (is there any?) capabilites, so I am lost with what to do here.
Thanks for the help!
r.
j
o
s
e
p
h
"Violence is a last resort of the incompetent" - Salvor Hardin,
Foundation by Issac Asimov
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.