Agreed. If it's not O'Reilly, it's not worth buying. ;) (In my humble opinion). I would recommend their Perl Cookbook as well, as it starts the programmer in the "PERL way of thinking", and gives example problems w/ several possible solutions, and a helpful discussion! FABULOUS!
In O'Reilly's "Perl COokbook", there are several examples using the File::Find module. You can download the examplesin their books on their website (<A HREF="http://www.oreilly.com" TARGET="_new">www.oreilly.com</A>). If you find that book, it's in examples 9-3 and 9-4
Try:<br><br>opendir DIR,".";<br>@filelist=grep { /^./ } readdir DIR;<br>closedir DIR;<br><br>then @filelist contains every element in the dir that DOESN'T start with "." (assuming that's what you want to get rid of)
$_ is the variable that stores the current working variable, if that maeks sense... in a for loop, you could say:<br><br><FONT FACE=monospace><br>foreach (@array) {<br> print $_;<br>}<br></font><br>... and it would print every element in the array
If the first script does everything you want it to (displays the message and then handles whatever functionality you want), you could just print a redirect statement after the final function exectues, to send the browser to a new page or CGI... since the page is already loaded, you could print...
Thanks for the help. I've tried the decoder without much luck, though. It creates a zero length file in the main dir (beacuse I don't specify a path to the object), and doesn't do much else. Maybe I just haven't looked at it closely enough yet. I was pretty frustrated with it yesterday.<br>
<br>...
That's basically handled in an editor. I use UltraEdit, but Programmer's File Editor and several other text editors will allow you to open as a certain type file, or to convert one to another automagically. Thats' the best way to handle it. Good luck!
I'm trying to retrieve messages from a POP3 server using the POP3Client module, and display it via the web (web mail, basically). However, when I get a multi-part message (when Outlook Express for instance sends an html message), I can't get it to only display the html chucnk without *major*...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.