Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: Scalar result from array

by Generoso (Parson)
on Dec 03, 2010 at 16:33 UTC ( #875215=note: print w/replies, xml ) Need Help??

in reply to Scalar result from array

May be this is what you are trying to do?

#!/usr/bin/perl -w # use strict; my @shows_to_find = <DATA>; print "Data input \n"; foreach (@shows_to_find){print;} print "\n", '-' x (60), "\n"; my @dl_nzb = (); my $nzb_url = 'url '; my $amp = ' amp '; my $cat_id = 'cat_id '; my $api_username_url = 'url2 '; my $api_username = 'user name '; my $api_key_url = 'url 3 '; my $api_key = 'key'; foreach my $y(@shows_to_find) { chomp($y); my $show_nzb_d = $nzb_url.$y.$amp.$cat_id.$amp.$api_username_u +rl.$api_username.$amp.$api_key_url.$api_key; push(@dl_nzb,$show_nzb_d); } foreach (@dl_nzb){print;print"\n";} print "\n", '-' x (60), "\n"; __DATA__ abc dft45.xml ert rt653.xml abc ert57.xml


perl "C:\Documents and Settings\16916\My Documents\new" Process started >>> Data input abc dft45.xml ert rt653.xml abc ert57.xml ------------------------------------------------------------ url abc dft45.xml amp cat_id amp url2 user name amp url 3 key url ert rt653.xml amp cat_id amp url2 user name amp url 3 key url abc ert57.xml amp cat_id amp url2 user name amp url 3 key ------------------------------------------------------------ <<< Process finished. ================ READY ================

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://875215]
[Lady_Aleena]: I don't know what to tell you. I can barely get my Linux machine to do things I want.
[Discipulus]: if DE or WM means desktop env and win manager.. no, not an option
[Lady_Aleena]: That's what they mean, at least to me. 8)
[Discipulus]: in the first attempt i failed, with an not usable v-machine.. ;=)
[Discipulus]: but then discovered a registry trick to do before the physical2virtual migration
[Lady_Aleena]: Sounds like a headache.
[Discipulus]: a bit shaggy.. every atttempt is ~4hours to virtualize and 1-2hours to kick the big file to boot..
[Lady_Aleena]: Ouch...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2017-05-22 18:45 GMT
Find Nodes?
    Voting Booth?