Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

RE: Re: modifying the search pattern of a file.

by dempa (Friar)
on Jul 13, 2000 at 15:27 UTC ( [id://22355]=note: print w/replies, xml ) Need Help??


in reply to Re: modifying the search pattern of a file.
in thread modifying the search pattern of a file.

I don't want to be picky, but shouldn't:

$num = $num == 1 ? 1 : 2;

be:

$num = $num == 1 ? 2 : 1;

?

Replies are listed 'Best First'.
RE: RE: Re: modifying the search pattern of a file.
by turnstep (Parson) on Jul 13, 2000 at 22:15 UTC
    Or perhaps:
    $num--; $num||= 2; or $num=$num%2 ? 2 : 1;

    Shamefully, --$num||=2; is not allowed.

RE: RE: Re: modifying the search pattern of a file.
by le (Friar) on Jul 13, 2000 at 15:35 UTC
    Of course, sorry... I was in a hurry.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://22355]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2024-04-20 11:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found