but see, i wont know the file until i parse the main file. The file you looked at before in the other thread is part of another file, its a table within a table within a table.
psuedocode: open main file for parsing; #not file1 or file2 parse out each file within this file; when reach $file1 send to subroutine; when reach $file2 send to subroutine; exit script;
its hard to explain actually lol. All the files will be handled basically the same way as this subroutine above but will be a little bit different.
The Main File has around 60 files inside of it. when you open the file in any hex editor... it has references just like the file i think you looked at a few days ago with file 1-25. the main thing with this script is will it allow me to go to $file1 and send it thru the sub routine, then go to $file2 and then send it thru the subroutine.

TL;DR
In essence these two files are within another file that i am parsing via hex offsets. i want to send each file thru one at a time in the same script.
so i think this will work correct? :
my $file1 = 'extracted/file1'; sub infile($file1); my $file2 = 'extracted/file2'; sub infile = 'extracted/file2';

In reply to Re^4: sending data thru a sub routine by james28909
in thread sending data thru a sub routine by james28909

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.