Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Code Typesetter

by ursus (Acolyte)
on Jul 23, 2007 at 20:25 UTC ( [id://628321]=note: print w/replies, xml ) Need Help??


in reply to Code Typesetter

In line 6, I recommend (my $ps = $_) =~ s/(\.[^.]+)?$/.ps/;

This should eliminate the extension requirement.

I also recommend at line 20, using while (condition) { } as it clarifies the intent of the statement (IMO).

All in all, an excellent idea. I'll probably use it sometime.

Replies are listed 'Best First'.
Re^2: Code Typesetter
by ursus (Acolyte) on Jul 23, 2007 at 20:28 UTC
    Also, it should probably use STDIN and STDOUT if !@ARGV

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://628321]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (6)
As of 2024-04-19 09:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found