Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: tempdir with template fails

by imp (Priest)
on Dec 03, 2006 at 00:39 UTC ( #587462=note: print w/ replies, xml ) Need Help??

in reply to tempdir with template fails

From the perldocs for File::Temp:

Trailing `X' characters are replaced with random letters to generate the filename. At least four `X' characters must be present at the end of the template.
And the relevant code from the module:
# Do it using substr - no reason to use a pattern match since # we know where we are looking and what we are looking for if (substr($template, $start - MINX + 1, MINX) ne 'X' x MINX) { ${$options{ErrStr}} = "The template must contain at least ". MINX . " 'X' characters\n"; return (); }

Comment on Re: tempdir with template fails
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (9)
As of 2015-11-26 11:02 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (697 votes), past polls