#!/usr/bin/perl;
use strict;
use warnings;
printf("Dollar %s\nPound %s\nPercent %s\nCarot %s\nAmpersand %s",
('$', '#', '%', '^', '&', '*'));
#Outputs
#Dollar $
#Pound #
#Percent %
#Carot ^
#Ampersand &
I'm not sure I understand the question. You ask about symbols occurring within the text but your example shows a percent sign occurring within the printf format argument. I think the answer is 'No, other symbols will not cause a problem for printf.'
However, keep in mind that anything between double quotes will interpolate, so use single quotes for your text argument so perl won't attempt to interpolate strings including $, @, %, \, etc.
d5e5
Practically a Posting Shark
810 posts since Sep 2009
Reputation Points: 159
Solved Threads: 159