[plug] [Perl] sorting arrays based on scalar value - Golf any one?

Carl Gherardi C.Gherardi at curtin.edu.au
Mon Nov 18 16:30:01 WST 2002


How about:
./program.pl < infile

?

Carl
> 
> I've just tested it for you and it still doesn't work ;)  I think the 
> fact that -p is wrapping it all in a while(<>) { ... } loop 
> and then you 
> are sucking the contents of <> into the sort is confusing perl and 
> causing it to stop dead waiting for more input.
> 
> 
> Matt
> 



More information about the plug mailing list