Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: combine two scripts in to one

by Zaxo (Archbishop)
on May 14, 2007 at 15:32 UTC ( [id://615358]=note: print w/replies, xml ) Need Help??


in reply to combine two scripts in to one

Is either of these working? Your system calls aren't transparent to me, so I can't tell. In the first script, it looks like you're trying to print to a filename instead of a handle, but that may just be a typo omitting a dot op.

To combine them, it looks like you can just merge the files by appending the second to the first. use strict; and use warnings; to help spot minor errors brought about by the merge.

I'll mention some style points. I prefer glob to angle brackets over the glob expression because that makes the intent stand out with less visual confusion. Even in windows, perl understands unix directory seperators. You don't need to put the glob list into a variable, for can work on it directly;

for my $file (glob 'C:/orant/FORMS60/forms/forms_up/*.fmb') { # do stuff }
It would be useful to check $@ for system call errors after each. That would probably tell you more about your problem than I can.

After Compline,
Zaxo

Replies are listed 'Best First'.
Re^2: combine two scripts in to one
by subha (Initiate) on May 14, 2007 at 17:30 UTC
    only the first part is being executed and not the second one.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (2)
As of 2024-04-25 02:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found