Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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

by rg0now (Chaplain)
on Mar 12, 2005 at 20:54 UTC ( #438991=note: print w/replies, xml ) Need Help??


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

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?

rg0now

Replies are listed 'Best First'.
Re^4: Replaying Santa Claus Golf Apocalypse with Pugs/Perl6
by TimToady (Parson) on Mar 12, 2005 at 21:47 UTC
    =<> is supposed work the same as magical <> in Perl 5. To explicitly read from standard input would require =$*IN instead.
      autrijus!

      This

      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!

      rg0now

        rg0now! it's now fixed! :)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://438991]
help
Chatterbox?
[Corion]: Lady_Aleena: Hopefully someone would step up to the plate!
[Lady_Aleena]: Corion, I could give the password to the gods to hold onto just in case.
[Discipulus]: Justin Case god can always get your pwd LA ;=) they all see, they all ear, they all know ;=)

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2017-04-26 08:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (471 votes). Check out past polls.