|
|
| Syntactic Confectionery Delight | |
| PerlMonks |
Find and replace MD5 hash from fileby adroc (Initiate) |
| on Jun 29, 2011 at 18:46 UTC ( #912014=perlquestion: print w/ replies, xml ) | Need Help?? |
|
adroc has asked for the
wisdom of the Perl Monks concerning the following question:
Hello, I am attempting to do a search and replace of MD5 hashes contained in a file but am having issues with the special characters contained within the hash. For example: #Just generating random hashes for this example and storing them in variables.
Doing the above generates an error similar to this. Bareword found where operator expected at -e line 1, near "s/$/7OWwo4h/FWHShP3" syntax error at -e line 1, near "s/$/7OWwo4h/FWHShP3" Execution of -e aborted due to compilation errors. Some example hashes.......... $1$UGXeHYG/$c8iQxpnMsSSCWlEPo0utZTxDjc.qCyTD59PjclG3iKW8p.ZRCySuul8mfl2xffClNH6m/0MqpbIaaHCsI/ziY0 $1$mOdDtc/f$iKpqV8NR7mfM9DrJ7ebS1/ What am I doing wrong here? Thanks in advance...
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||||