in reply to Re: How To Store Data Structures
in thread How To Store Data Structures

Just a note, it only works for me if the site-specific package is coded like this:
sub config_data { return { starting_page => 'www.yahoo.com/foo/', some_regex => qr/foo(.*?)bar/, html_tree_spec => [ '_tag', 'div', 'id', 'headlines' ], }; }
With curly brackets not parentheses. Did I, or did you, get something wrong?


($_='kkvvttuu bbooppuuiiffss qqffssmm iibbddllffss')
=~y~b-v~a-z~s; print

Replies are listed 'Best First'.
Re^3: How To Store Data Structures
by jdporter (Paladin) on Jul 20, 2005 at 13:44 UTC
    Ah, good catch. Yes, I thought (mistakenly) that your original code was returning a hashref. Adjust as necessary. :-)