I had a quick look at the source-code of this method. It calls the build method but that method does not check if the file exists or is accessible. So there is no error checking done here and the usual "or die ..." invocation gives a false sense of security.
CountZero
A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
In reply to Re^2: Sending excel file as an attachment
by CountZero
in thread Sending excel file as an attachment
by MoFiddy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |