Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (12)
As of 2014-07-29 17:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (225 votes), past polls