open(IN, '<', $source) or die "Couldn't open $source: $!\n"; #### my @data = map [ split ], grep /\S/, <>; ### <> reads from stdin (or a file named on the command line) You would need instead. #### my @data = map [ split ], grep /\S/, <>;
## my @data = map [ split ], grep /\S/, <>; ### <> reads from stdin (or a file named on the command line) You would need instead. ##
## my @data = map [ split ], grep /\S/, <>;