Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: How to use STDIN in between a URL?

by InfiniteSilence (Curate)
on Apr 24, 2014 at 18:11 UTC ( [id://1083660]=note: print w/replies, xml ) Need Help??


in reply to How to use STDIN in between a URL?

chomp is your friend.

DB<1> p $smiles CCC DB<2> chomp $smiles DB<3> p $smiles CCC DB<4> n main::(monks1083655.pl:8): my $finalurl = get "$url$smiles/property +/MolecularFormula,MolecularWeight,TPSA/CSV/"; DB<4> n main::(monks1083655.pl:9): print $finalurl; DB<4> p $finalurl "CID","MolecularFormula","MolecularWeight","TPSA" 6334,"C3H8",44.095620,0.0 DB<5> q

Celebrate Intellectual Diversity

Replies are listed 'Best First'.
Re^2: How to use STDIN in between a URL?
by piscean (Acolyte) on Apr 24, 2014 at 18:16 UTC
    Thanks, my friend :)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (10)
As of 2024-04-18 08:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found