Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: Outlook & Win32::OLE

by Nalina (Monk)
on Aug 18, 2004 at 05:11 UTC ( #383857=note: print w/ replies, xml ) Need Help??


in reply to Re: Outlook & Win32::OLE
in thread Outlook & Win32::OLE

I am new to perl. I had a look at ur node, what does '-f' stand for in the statement

unlink $temp_file_name if -f $temp_file_name;
and what is '$|' variable?


Comment on Re^2: Outlook & Win32::OLE
Download Code
Replies are listed 'Best First'.
Re^3: Outlook & Win32::OLE
by bassplayer (Monsignor) on Aug 18, 2004 at 14:06 UTC
    -f is a file test operator used to see if a file is plain text. In my code, I was just deleting the file if it existed, and probably should have used -e. More information on file test operators can be found here.

    As far as $|++, this stops the buffering of the output. $|=1 is cleaner in this case, so I've updated my old node. For more info on $|++ and $|=1, here are some interesting, relevant nodes.

    bassplayer

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://383857]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2015-07-30 05:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (270 votes), past polls