Sabtu, 30 Januari 2010

Easy Origami Swan Paper Folding

MenuOrigami Swan Tutorial
Making Origami Swan Basic Procedure
Making Origami Swan Basic Part
Beautiful Origami Swan Examples
Cute Origami SwanOrigami is the art of folding paper into a variety of things, so it's also called "paper folding". It can be simple or complicated, and the sky is the limit. In this post I'll introduce one way to make origami: I fold a small piece of paper into some shape, and make many of them and assemble them into something beautiful. Usually after I am done I give it to somebody as a gift, and usually his or her reaction involves crying and slobbering (haha not really..). It really warms the cockles of the recipient's heart.

I'll give you origami instructions on how to make a beautiful origami swan like the one in the photo. Don't worry: it's easy origami paper folding and anyone can do it. Then I'll show you some work I've done. Let's go on and see how you can impress your loved ones with this beautiful work of paper.

Without further ado let's get started on making a beautiful piece of art!

Making Origami Swan Basic Procedure ▶

Senin, 25 Januari 2010

Perl Global Variables

How do you define global variables in Perl?

I want to define a variable in one perl file and be able to access it from another perl file in the easiest way possible. First of all I find it shocking that I couldn't find much support for this question on Google, so I decided to post the answer myself. Suppose in global.pl you'd like to define the variable (or variables), and in access.pl you'd like to access the variables defined in global.pl. In global.pl define the variable. Do not use 'my' keyword, as it restricts the scope to current file. This means that you should not have 'use strict' in global.pl. In access.pl put "require 'global.pl'". That's it.

For example:

In global.pl you have:

$MY_GLOBAL_VARIABLE1 = 1;
$MY_GLOBAL_VARIABLE2 = 'a string';


In access.pl you have:

print "My global variable 1 is $MY_GLOBAL_VARIABLE1 and my global variable 2 is $MY_GLOBAL_VARIABLE2";

Easy right? Hope it helps
 
support by: infomediaku.com