> > The format of the output hash I wish to write is:- > > > > $hash= { > > 'key' => { > > 'original_value' > > =>$original_value', > > 'new_value' => > '$original_value', > > > > 'files' => [ > > > '$file1','$file2' > > ] > > }, > > }; > > > > Where $original_value & the $file1,$file2 values > can > > contain ANY character. > > I'm not sure if your hash is literal, but you don't > want quotes > around $original_value, $file1 and $file2. >
Hey Bill, thanks for your input, but no, I was simply meaning that the string of perl I was trying to create would have some values that were themselves dynamic. These dynamic values quite often contained {[()[EMAIL PROTECTED]) chars, which if I didn't escape them properley would break the syntax for the perl hash ref. Now I just have to read them back in and pattern match against them in other files, think the \Q \E syntax should do that, will look it up. Regards Marty ___________________________________________________________ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com _______________________________________________ Perl-Unix-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs