Do you know where your variables are? | |
PerlMonks |
Re: Re: add a line based on maxline lengthby redsquirrel (Hermit) |
on Jul 31, 2002 at 20:00 UTC ( [id://186581]=note: print w/replies, xml ) | Need Help?? |
Surely a Perl script of that brevity can be reduced to a one-liner:
perl -lpe '$p = length if $p < length; END {print "X" x $p}' --Dave
In Section
Seekers of Perl Wisdom
|
|