Created
December 17, 2011 16:42
-
-
Save abuzarhamza/1490676 to your computer and use it in GitHub Desktop.
global perl variable $,
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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