Does someone know how to create sparse files with Perl without using a system command?How about this:
open my $fh, '>', 'zeros' or die "error opening fh: ($!)"; binmode $fh; print $fh pack "x512"; #512 bytes-- season to taste, loop as needed
In reply to Re: system and &>/dev/null
by broomduster
in thread system and &>/dev/null
by mscharrer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |