Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Precedence for Idiots

by Melly (Hermit)
on Dec 01, 2006 at 14:11 UTC ( #587193=perltutorial: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
  2. or download this
    $y = $x ? 1 : 0;
  3. or download this
    $x ? $y=1 : $y=0;
  4. or download this
    $x ? $y=1 : $y=~s/.*/0/;
  5. or download this
    $x ? $y=1 : ($y=~s/.*/0/)
  6. or download this
    $x ? $y=1 : ($y=0);
  7. or download this
    $y = $x ? 1 : 0;
  8. or download this
    $x = ((((((1 * 2) * 3) * (4 ** 2)) * 5) * 6) * 7)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perltutorial [id://587193]
[Corion]: thezip: start "some title" path\to\that\ application, but that will open another console window
[Corion]: thezip: If you want to confuse your users, use system(1, "that\\command" );, which will make Perl launch it in the background
[Corion]: That will keep the console window open even though the user can't type into it anymore
[thezip]: So I have a script that generates a log file. After script completion, I want tohave VIM open this logfile.
[thezip]: i don't get the command line "back" until I close VIM. No what I want to happen...
[thezip]: I currently don't have access to CYGWIN, else I'd just do a tail -f on the logfile.

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (11)
As of 2017-03-27 18:49 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (321 votes). Check out past polls.