SkintStudent
Programmer
Hi I've been using thhe MIME:
arser to ouutput incoming emails to a directory.
I've allowed it to randomly select a filename for me,
but I want to be able to find out what this randomly created filename is after is creates it.
My code looks like this:
# Create a new parser object:
my $parser = new MIME:
arser;
# Tell it where to put things:
$parser->output_under($pathName);
# Parse an input filehandle:
$entity = $parser->parse(\*ARGV);
# Create a new, empty header, and populate it manually:
$head = MIME::Head->new;
# Parse a new header from a filehandle:
$head = $entity->head;
How would i then found out the filename which was generated?
I've allowed it to randomly select a filename for me,
but I want to be able to find out what this randomly created filename is after is creates it.
My code looks like this:
# Create a new parser object:
my $parser = new MIME:
# Tell it where to put things:
$parser->output_under($pathName);
# Parse an input filehandle:
$entity = $parser->parse(\*ARGV);
# Create a new, empty header, and populate it manually:
$head = MIME::Head->new;
# Parse a new header from a filehandle:
$head = $entity->head;
How would i then found out the filename which was generated?