Simple Perl variables are called scalars
. Examples of scalar values are
$number = 123;
$string = "String";
$file_handle = open "<filename";
$null_value = undef;
$reference = \"Reference of a String";
sudo yum groupinstall “Development tools” | |
mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS} | |
echo '%_topdir %(echo $HOME)/rpmbuild' >> .rpmmacros | |
echo '%debug_package %{nil}' >> .rpmmacros |
# Path to your oh-my-zsh configuration. | |
ZSH=$HOME/.oh-my-zsh | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. | |
ZSH_THEME="kafeitu" | |
# Example aliases |
require 'abstract_unit' | |
class ParentController < ActionController::Base | |
protect_from_forgery | |
layout Proc.new { |controller| controller.request.xhr? ? '/layouts/xhr' : '/layouts/standard' } | |
end | |
class ChildController < ParentController | |
def render_implicit_html_template_from_xhr_request | |
render :template => "test/hello_world" |