Name

MV_FILE — contains the name of the last file read or of an external Perl routine

SYNOPSIS

@@MV_FILE@@

DESCRIPTION

This variable contains the filename of the most recently returned contents. The value is not set in the configuration files, but is manipulated by the Interchange daemon while it is runnning.

VARIABLE TYPE

Global variable

EXAMPLES

Example: Display the content of the MV_FILE variable

Add the follwing to a test Interchange page:

The last filename is: @@MV_FILE@@

NOTES

The variable is not intended to be written to.

AVAILABILITY

MV_FILE is available in Interchange versions:

4.6.0-5.7.0 (git-head)

SOURCE

Interchange 5.7.0:

Source: lib/Vend/File.pm
Line 237 (context shows lines 227-241 in readfile():196)

  }
}

if(! $file) {

  $contents = readfile_db($ifile);
  return undef unless defined $contents;
}
else {
  return undef unless open(READIN, "< $file");
  $Global::Variable->{MV_FILE} = $file;

  binmode(READIN) if $Global::Windows;

      if ($encoding) {

AUTHORS

Interchange Development Group

SEE ALSO

DocBook! Interchange!