Hi Marco,

On Apr 19, 2008, at 16:32 , Marco Rudzuck wrote:
thank you for your help.

I think, reading the content is possible with

open(FILE, <, file.pdf)

Just put binmode on it, just to me save.

binmode(FILE);

while(<FILE>)

{

  $content = $_;

}

close(FILE);


Am I right? If so I think everything is fine now ;-)


Fine! ;)

PS: You also can use Kernel::System::Main to read files e. g.

    my $ContentSCALARRef = $MainObject->FileRead(
        Location => 'c:\some\location\me_to\alal.xml'
    );

Accessible over "${$ContentSCALARRef }" als normal string.

Greetings,

 -Martin

--
((otrs)) :: OTRS AG :: Europaring 4 :: D - 94315 Straubing
  Fon: +49 (0) 9421 56818 0 :: Fax: +49 (0) 9421 56818 18
    http://www.otrs.com/ :: Communication with success!

Address of record: Bad Homburg
Local Court: Bad Homburg, HRB 10751
Tax number: 003/240/97505

Chairman: Burchard Steinbild
Chief Executive Officer: André Mindermann

_______________________________________________
OTRS mailing list: dev - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/dev
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev

Reply via email to