Re: Using the ternary operator to concat a string not working like I think?

2012-04-05 Thread Stan
Thanks to everyone for their help! It's been very enlightening! Stan On Apr 4, 2012, at 4:51 AM, Shlomi Fish wrote: > Hi all, > > inspired by this thread, I’ve added this item in my “Perl Elements to Avoid” > page: > > http://perl-begin.org

Using the ternary operator to concat a string not working like I think?

2012-04-03 Thread Stan N/A
%test; code I believe the output should result with: first is the worst second The output I receive running this test is: first is the worst is the best second This seems peculiar! Help! Stan -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Filtering a Unicode string to Latin1 subset

2008-11-27 Thread Stan
I am given a UTF-8 string. Because some downstream system only handles Latin-1 text, I'd like to either strip all characters that are outside the Latin-1 codepoints (Latin-1 is 0x00-0xFF), or replace them with a '.' or maybe a '¿' to indicate a substitution. What's the best way to do this? -- To

Problem w/ libwww-perl.5.803

2007-03-20 Thread Stan Cooper
riteMakefile prompt); use Config qw(%Config); #--- Configuration section --- my @programs_to_install = qw(lwp-request lwp-mirror lwp-rget lwp-download); my @request_aliases = qw(GET HEAD POST); 2TIA, Stan - Don't be flakey. Get Yahoo! Mail for Mobile and always stay connected to friends.

Re: Tweaking a Script

2007-03-20 Thread Stan Cooper
Great! Thanks to both of you! Stan2 Jeff Pang <[EMAIL PROTECTED]> wrote: >Hi; >I need to add a line that calls a shell script to a perl script I found. Is it >as simple as just adding the path of the script? > >else >/usr/local/bin/my_script.sh > Hello, You could write it like: system "/u

Tweaking a Script

2007-03-19 Thread Stan Cooper
Hi; I need to add a line that calls a shell script to a perl script I found. Is it as simple as just adding the path of the script? else /usr/local/bin/my_script.sh Or is there some special incantation? TIA, Stan2 - Now that's room service! Choose from over

IDE's

2002-08-21 Thread Stan Benner
Any help? Thanks, Stan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

search for string in a file

2001-07-30 Thread alex stan
I need to search for a string in httpd.conf file , ( the string is : CustomLog /var/log/httpd/site.com/access_log ) and then replace inside them site.com with site_com. I mentioned that the site.com can take diferent values, such as shop.com , radioq.

search for string in a file

2001-07-30 Thread alex stan
I need to search for a string in httpd.conf file , ( the string is : CustomLog /var/log/httpd/site.com/access_log ) and then replace inside them site.com with site_com. I mentioned that the site.com can take diferent values, such as shop.com , radioq.

String replace in a file

2001-07-30 Thread alex stan
Could anyone help me? How can i find a string in a file and then replace it with another string? Thanks a lot --- ROL!RO free mail - http://mail.rol.ro Spatiu nelimitat pentru contul tau si acces gratuit prin dial-up! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-