in reply to Re^2: DateTime::Format::Flexible; for Log Parse with multiple formatted lines
in thread DateTime::Format::Flexible; for Log Parse with multiple formatted lines
In Perl, it is possible to define a file that is contained within the program code itself! This is called a DATA segment. A simple example:
The __DATA__ segment is a pre-opened file handle. There are ways to put multiple input files within the code, but a DATA segment for a single file is the most often used.#!/usr/bin/perl use strict; use warnings; while (<DATA>) { print; } __DATA__ Some example lines that could be in a file
It is not clear to me what the desired output is. Please include an example of that in your post.
|
|---|