Skip to content

Instantly share code, notes, and snippets.

View joeheyming's full-sized avatar
💭
Cautiously Optimistic

Joe Heyming ¯\_(ツ)_/¯ joeheyming

💭
Cautiously Optimistic
View GitHub Profile
@joeheyming
joeheyming / kwargs_1
Created February 20, 2014 19:42
example of python and perl named/keyword arguments
# python
def printArgs(*args, **kwargs):
print kwargs
>>> printArgs(a=1, b=2)
{'a': 1, 'b': 2}
# perl
use Data::Dumper;
sub printArgs {