![]() |
|
Welcome to the Monastery | |
PerlMonks |
Passing strings without quotesby jerryhone (Sexton) |
on Jan 28, 2006 at 00:13 UTC ( #526112=perlquestion: print w/replies, xml ) | Need Help?? |
jerryhone has asked for the wisdom of the Perl Monks concerning the following question:
Amyone ever used SQR? I have a job to do to convert a stack of SQR scripts to Perl. I guess the first question is, has anyone done this before - had a Google and couldn't find anything! So I'm probably down to doing it myself...SQR passes parameters into its print statement that are either absolute or relative row/column positions in the output report so print 'fred' (1,2) - absolute line 1 column 2 print 'barnie' (+2,+3) - relative 2 lines on 3 columns right I'd like to be able to pass the +2 to my own print format routine, but that'll usually pass as 2 and therefore lose the '+' sign. Can I force +2 to be passed as +2 without quoting it?
Back to
Seekers of Perl Wisdom
|
|