Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re^2: Replaying Santa Claus Golf Apocalypse with Pugs/Perl6

by audreyt (Hermit)
on Mar 12, 2005 at 20:15 UTC ( #438986=note: print w/replies, xml ) Need Help??

in reply to Re: Replaying Santa Claus Golf Apocalypse with Pugs/Perl6
in thread Replaying Santa Claus Golf Apocalypse with Pugs/Perl6

Hey, why =open@ARGV[0] instead of =<> again? That will save 10 strokes per hole, bringing it to a more respectable 153...

Replies are listed 'Best First'.
Re^3: Replaying Santa Claus Golf Apocalypse with Pugs/Perl6
by rg0now (Chaplain) on Mar 12, 2005 at 20:54 UTC
    This is because we are ran by
    my $cmd = "pugs $scr $intmp";
    which means that we are getting the name of the file to be read as the first command line argument. But, based on my (granted, limited) understanding, =<> would read from the standard input. Am I completely missing something here again?


      =<> is supposed work the same as magical <> in Perl 5. To explicitly read from standard input would require =$*IN instead.


        my@l= =<>; print @l;
        wants to read from the standard input with current Pugs, even if command line arguments are given! In contrast, as TimToady pointed it out, it should read from the files given in the command line arguments, if there are any!


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://438986]
[oiskuu]: I'm unfamiliar with android or SELinux. But I believe there is nothing of a kind. Unless you play with capabilities or build your own containers/ namespaces.
[davido]: I am not finding closing STDIN to be an adequate means of making getlogin return undef.
[Corion]: Maybe doing a double-fork (daemonizing) can make go that information away, but maybe not

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (8)
As of 2017-06-23 19:32 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (554 votes). Check out past polls.