Dear Monks,
I have some code as follows.
opendir(DIR_C,"$input_directory") or die $!;
while(my $job_C=readdir(DIR_C)){
next unless $job_C =~ /$tag\.txt$/;
my $job_out;
my $job_new_name;
my $job_out_complete;
my $job_out_complete_B;
if ($job_C =~ /(.{36})\.txt$/)
{
Check_file_name_conditions ($job_C, $node);
+
next unless ($do_I_pick_up_request == 'Y' && $When_process_
+request== 'Now');
I have a couple of questions relating to this:
Is the last
next unless statement used correctly? I want it to go to the next iteration in the while loop.
Am I right in assuming that $do_I_pick_up_request and $When_process_request will have been picked up when returned from the Check_file_name_conditions sub using
return ($do_I_pick_up_request, $When_process_request)?
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.