Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: unless

by crouchingpenguin (Priest)
on Jun 25, 2003 at 17:12 UTC ( #268921=note: print w/replies, xml ) Need Help??

in reply to multiple commands before unless ?

Or use the comma operator:

#!/usr/bin/perl use strict; use warnings; use constant TRUE => 0; printf("System Error\n"), exit unless TRUE; print 'I should never be printed',"\n";

Update: Changed code so it follows question example code.

"Never be afraid to try something new. Remember, amateurs built the ark. Professionals built the Titanic."

Replies are listed 'Best First'.
Re: Re: unless
by emilford (Friar) on Jun 25, 2003 at 18:27 UTC
    I don't see how this applies. I wasn't trying to print a variable, but rather print a string and then exit the script. Am I missing something.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://268921]
Discipulus ignores..
Discipulus IE just maps to id est in my mind .. ;=)
[Corion]: marto: I believe nowadays, at least window.opener should not be set anymore (except maybe within the same domain)
[Corion]: But I wouldn't really know as I don't use iexplore much (except at $work) and mostly surf with JS disabled (except at $work :) )
[marto]: yeah, this is at work, where some intranet app launches links via When users close the intranet page so that only the new JS opened windows exist, clicking URLs in an email (or whatever) don't open

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2018-03-21 11:45 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (267 votes). Check out past polls.