Skip to content

Instantly share code, notes, and snippets.

@abuzarhamza
Created December 17, 2011 16:42
Show Gist options
  • Save abuzarhamza/1490676 to your computer and use it in GitHub Desktop.
Save abuzarhamza/1490676 to your computer and use it in GitHub Desktop.
global perl variable $,
#!/usr/bin/perl -w
$\ = "\n";
$, = "\t";
print "1. foo\tyou\tme\tperl";
print "2. foo","you","me","perl";
foo();
sub foo {
local $, = " ";
#I am making record separator with a space
#print ""
print "3. foo","you","me","perl";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment