Christian Calónico wrote: > > Hi, > I'm new in Perl, and I need to analyze a binary file, byte per byte. > > $/ = undef; > open FILE, "file.bin" or die $!; > binmode FILE; > my $data = <FILE>; my @data = <FILE>; @data = split //, @data;
foreach my $byte (@data){ # do somtheing with $byte } /Stefan > is that ok? how can I get one byte, the next, the next, etc? > Thanks in advance!! > > Christian > > _________________________________________________________________ > Charla con tus amigos en línea mediante MSN Messenger: > http://messenger.yupimsn.com/ > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]