parameters: (code)
docstring: Block decorator to run code in a Perl session.
  
      To use this, put %perl by itself in a cell so that it applies to
      the rest of the cell, or put it at the beginning of a line to
      run just that line using perl.
  
      EXAMPLE:
  
      A perl cell::
  
          %perl
          $apple_count = 5;
          $count_report = "There are $apple_count apples.";
          print "The report is: $count_report\n";
  
      Or use %perl on one line::
  
          %perl  $apple_count = 5;  $count_report = "There are $apple_count apples."; print "The report is: $count_report\n";
  
      You can combine %perl with capture, if you would like to capture
      the output to a variable.  For example::
  
          %capture(stdout='p')
          %perl print "hi"
  
      Afterwards, p contains 'hi'.
  
      NOTE: No state is preserved between calls.  Each call is a separate process.
docstring_summary: Block decorator to run code in a Perl session.
docstring_tokens: Block decorator to run code in a Perl session .
function: def perl(code):
      """
      Block decorator to run code in a Perl session.
  
      To use this, put %perl by itself in a cell so that it applies to
      the rest of the cell, or put it at the beginning of a line to
      run just that line using perl.
  
      EXAMPLE:
  
      A perl cell::
  
          %perl
          $apple_count = 5;
          $count_report = "There are $apple_count apples.";
          print "The report is: $count_report\n";
  
      Or use %perl on one line::
  
          %perl  $apple_count = 5;  $count_report = "There are $apple_count apples."; print "The report is: $count_report\n";
  
      You can combine %perl with capture, if you would like to capture
      the output to a variable.  For example::
  
          %capture(stdout='p')
          %perl print "hi"
  
      Afterwards, p contains 'hi'.
  
      NOTE: No state is preserved between calls.  Each call is a separate process.
      """
      script('sage-native-execute perl')(code)
function_tokens: def perl ( code ) : script ( 'sage-native-execute perl' ) ( code )