Hi is it possible to run a two subroutines from within an existing subroutine. I have attached a small part of my script which when run will tst the existence of 3 files. if they don’t not exist i would like it to run two other routines within my script. the problem I’m having is that it test for the existence but does not seem to run the two subroutines if the files do not exist. I can provide the full script if required just thought it might be easier this way. :)
sub testlink { chdir($location) || die "Can't Chdir to $newdir: $!"; if ( -e $web_setup || $webin || $web_service ) { print "The links for the \"$site\" site may already exist please check + and try a gain.\nYou may need to remove links before adding them.\n"; } else { &linkfile; &linkdir; }

In reply to Running multiple subroutines by muizelaar

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.