in reply to Re: insert zero into binary files ?
in thread insert zero into binary files ?
But, previously I'm dealing with ASCII files and now binary files. There should be some different here and I did not see any help on my previous cases.
Ok, This is my program :
and the error is :#!/usr/bin/perl -w undef $/; my $file = <>; my $i = length($file); my $zero = (2048000 - $i) x chr(0); print "$file" . "$zero";
Argument "" isn't numeric in repeat (x) at ./a.pl line 6, <> chunk 1.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: insert zero into binary files ?
by castaway (Parson) on Nov 06, 2003 at 08:29 UTC | |
by bh_perl (Monk) on Nov 07, 2003 at 08:32 UTC | |
|
Re: Re: Re: insert zero into binary files ?
by edan (Curate) on Nov 06, 2003 at 08:29 UTC | |
by hawtin (Prior) on Nov 06, 2003 at 18:41 UTC |