Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. bbv4464

    Interpolating a variable into an escape sequence

    Urgh. Never mind. I talked to the bear (http://www.perlmonks.org/?node_id=376075) and reread perldocs. print eval ('"'.'\c'.eval('"'.$_.'"').'"') foreach ('J', 'L', 'M');
  2. bbv4464

    Interpolating a variable into an escape sequence

    Is it possible to interpolate the contents of a variable into an escape sequence? Something like # print LINEFEED, FORMFEED, and CARRIAGE RETURN print "\c$_" foreach ('J', 'L', 'M'); I have tried: my $x = "L"; print "\c$x"; my $x = "L"; print eval "\c$x"; my $x = '\c'; my $y = 'L'; print...

Part and Inventory Search

Back
Top