Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: Batch Router

by krisahoch (Deacon)
on Aug 07, 2003 at 21:10 UTC ( [id://282033]=note: print w/replies, xml ) Need Help??

in reply to Batch Router


First and foremost, let me congradulate you on your name. It gives me a distrubing mental impression that I do not want to think to long about

Now that the is over, if there would be one thing that I would do here, it would be to write a 'Print' function. If you need to send everything to STDOUT, then you can lessen your keystrokes by doing something like ...

sub Print{ my $string = shift(); print STDOUT "$string\n"; }
Then you could change all of those instances of...
print STDOUT "Batch Router - the batch router configurator\n"; print STDOUT "\n"; print STDOUT "List of options and their functions:\n";
Print "Batch Router - the batch router configurator"; Print(); #Empty line Print "List of options and their functions:";

This is merely a suggestion.

Kristofer Hoch

Damn it Jim, I'm a doctor not a physician

Replies are listed 'Best First'.
Re: Re: Batch Router
by Mr. Muskrat (Canon) on Aug 07, 2003 at 21:30 UTC

    Wouldn't it be saner to simply use print until the need arises to print to anything but STDOUT?

    print "Batch Router - the batch router configurator\n"; ... print $out_FH "----------------------------------------------------\n" +;

      That would be my thought, but I don't know what crackotter is trying to do/circumvent. As such, I assumed that he had a good reason for doing what he did. Personally, I'd do exactly what you're saying, but that's just me.

      Kristofer Hoch

      The dog isn't supposed to stretch like that -- Overheard spouse talking to the daughter

Re: Re: Batch Router
by crackotter (Beadle) on Aug 18, 2003 at 18:18 UTC
    Awesome suggestion, which I will implement into the next version. Thank You

Log In?

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2024-05-29 18:15 GMT
Find Nodes?
    Voting Booth?

    No recent polls found