Perl: How to Print symbols like " and ;

Hi,
How do I print a line with symbols in a file?

Exp:
If I want to print line: Hi "Lisa;John"

Command:
print FILE "Hi "Lisa;John""; - will give me error Bareword found where operator expected...

Can someone advise how can I print any line consiting symbols like example above. Thanks :slight_smile:

zsh-4.3.10[sysadmin]% perl -le'print q{Hi "Lisa;John"}'
Hi "Lisa;John"

Check the docs: perldoc perlop and search for Quote-Like.

You can also escape them like "this contains a \" and works";

Thanks radoulov and Corona688. :slight_smile: