daily pastebin goal
32%
SHARE
TWEET

Untitled

a guest Jul 23rd, 2018 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # With ternaries
  2.         $nl = $separator2 ?? $remainder eq "\n" ?? $remainder
  3.                                                 !! $separator2
  4.                           !! $separator;
  5.  
  6. # Original
  7.         if $separator2 {
  8.             if $remainder eq "\n" {
  9.                 $nl = $remainder;
  10.             }
  11.             else {
  12.                 $nl = $separator2;
  13.             }
  14.         }
  15.         else {
  16.             $nl = $separator;
  17.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top