senthil_v has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: Convert to Single line
by Corion (Patriarch) on Jul 07, 2011 at 13:31 UTC

    What have you tried and where did you encounter problems?

    Have you tried removing all newlines from your script?

Re: Convert to Single line
by Anonymous Monk on Jul 08, 2011 at 02:43 UTC

    Please Read
    How (Not) To Ask A Question: Do Your Own Work

    Please show some respect for the people who donate their time here to teach Perl and those willing to put in the time to learn Perl. You have been asked a number of times before. Please learn the common courtesies of the site.

    Thank you :-)

Re: Convert to Single line
by zek152 (Pilgrim) on Jul 07, 2011 at 13:35 UTC

    Here is a poorly written one liner...

    $ perl -e "for (2 .. $ARGV[0]-1) {$ARGV[0]*=$_;} print $ARGV[0];" 7 $ 5040 $
Re: Convert to Single line
by moritz (Cardinal) on Jul 08, 2011 at 12:41 UTC