On 8/9/07, Jason <[EMAIL PROTECTED]> wrote:
> I think I didn't post my question properly.
> The text file will be having different field values with alon with
> some headers.
> A java program will parse the file and create a java object with the
> same field values and headers, but the position and format may change.
>
> Now I want to check if the java program takes all the values from the
> text file and puts in the java object.
> So is there a way that usin Perl i can take the values from the text
> file in an array or some thing like that.. do the same thing for the
> java object and do the comparision.
> I want to check that java program reads the text file , parses all the
> values and creates a java object with the same value that in the text
> file.
>
> Hope I made it more clear this time.

Not much.

How is Perl supposed to access this Java object? Normally an object
disappears when it goes out of scope, or at the latest when the
process it belongs to exits.

Are you planning to have Perl read the private memory of your Java
program? Or are you planning to store your object to disk somehow? If
so, how are planning to serialize it? Will it be stored as some kind
of executable? Or written in some kind of text notation?

If you're storing the object to disk using a notation like like
JSON--or some other text format--then yes, you can use Perl to parse
it. If you have a spec for the object file, you could also read the
file in binmode and search through file for whatever byte sequences
you need.

HTH,

-- jay
--------------------------------------------------
This email and attachment(s): [  ] blogable; [ x ] ask first; [  ]
private and confidential

daggerquill [at] gmail [dot] com
http://www.tuaw.com  http://www.downloadsquad.com  http://www.engatiki.org

values of β will give rise to dom!

Reply via email to