Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^3: system function not handling string properly

by McA (Priest)
on Sep 06, 2013 at 21:36 UTC ( #1052776=note: print w/replies, xml ) Need Help??


in reply to Re^2: system function not handling string properly
in thread system function not handling string properly

Excuse me, I've overlooked that line.

What is your OS? What shows 'which echo' on your system?

This code works pretty well on my system:

#!/usr/bin/env perl use strict; use warnings; use 5.010; my $url = '"www.youtube.com/watch?v=mark"'; system('echo', $url); $url = "www.youtube.com/watch?v=mark"; system('echo', $url);

McA

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1052776]
help
Chatterbox?
[Discipulus]: be your path light Pirsig
[Corion]: Hi Discipulus!
[Discipulus]: your chautauqua was important for me

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2017-04-25 11:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (449 votes). Check out past polls.