in reply to URL-String-concatenation within Perl [applying to a loop]

String concatenation? That's easy:

'string literal' . $foo

qq{string literal$foo}

join('', 'string literal', $foo)

Now, why don't you try to make that first snippet of code actually compile?

Replies are listed 'Best First'.
Re^2: URL-String-concatenation within Perl [applying to a loop]
by Perlbeginner1 (Scribe) on Nov 27, 2010 at 19:04 UTC
    hi there anon monk
    thx for the reply. Heard of the two ways - the dot-operator and the join-operator.
    Well - many many thanks - i will try this out later the weekend...
    Many many thanks
    pb 1

    ps: i do it with this:


    for my $i (0..10000) { $ua->get('siteone_dot_com?show_subsite', id => , extern_uid => $i); # process reply }



    btw: see some details for this target-server:
    http://dms-schule.bildung.hessen.de/suchen/suche_schul_db.html?show_school=9009
    http://dms-schule.bildung.hessen.de/suchen/suche_schul_db.html?show_school=9742
    http://dms-schule.bildung.hessen.de/suchen/suche_schul_db.html?show_school=9871


    i want to loop over the above mentioned results:

    so i apply the string cocatenation to this examples...