if you have the $ dollar sign in a string and want to process it further in some cases you need to escape the dollar sign:

$pwd =~ s/\$/\\\$/g;

computer2know :: thank you for your visit :: have a nice day :: © 2024