domm has asked for the wisdom of the Perl Monks concerning the following question:
I.e., a wrapper around .=, push and %hash=(%hash,%newhash) that checks the data type of it's arguments and "pushes" the second onto the first, according to some rules. I am not looking for a way to overload .= et.al.
In fact, I've got a sub that does all this, but maybe this is allready on CPAN, allthough I couldn't find anything.
So, any pointers would be appreciated.
-- #!/usr/bin/perl for(ref bless{},just'another'perl'hacker){s-:+-$"-g&&print$_.$/}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: merge two simple data structures
by broquaint (Abbot) on Jul 15, 2002 at 10:34 UTC | |
|
Re: merge two simple data structures
by Abigail-II (Bishop) on Jul 15, 2002 at 12:06 UTC | |
|
Re: merge two simple data structures
by shotgunefx (Parson) on Jul 15, 2002 at 11:18 UTC | |
|
Re: merge two simple data structures
by Aristotle (Chancellor) on Jul 15, 2002 at 13:47 UTC | |
|
Re: merge two simple data structures
by cfreak (Chaplain) on Jul 15, 2002 at 15:04 UTC |