#perl - Tue 24 Apr 2007 between 02:24 and 02:35



revdiabloWhat version of perl are you using, by the way?
Khisanthwell STDOUT is probably not set to use utf16 either :)
Cbrohave to use ActivePerl unfortunately
actionKhisanth goes to drill some wells
Khisanthgoes to drill some wells
revdiabloCbro: Yes, but what version
Khisanthversion number
Cbrok
hang on
revdiabloperl -v
Cbro5.8.8
DrCherryoh I know what I was thinking of .. @file = <>;
revdiabloPerlJam: Heh, yeah... vim can delete the first line and convert it to a different encoding. But I assume he wants to automate this
Cbro: Ok. Check the return value of open() to make sure it's not failing.
Cbrookie
PerlJamCbro: perldoc perlopentut # read this too
ologyWhy is using ActivePerl unfortunate (besides being on Winblows)?
revdiabloCbro: You've done it on the other two open calls, just not the new one
PerlJamology: you're stuck with PPM and don't have access to most of CPAN.
Cbroit says it cannot find the file
when it is there
PerlJamCbro: clearly not.
Cbroand the other OPEN command picks it up
ologyah yes
KorthrunAnyone know where I would look (or search terms) to learn more about whacky one liner syntax like 'do_stuff if $foo;' instead of 'if ($foo) { do_stuff; }'
PerlJamKorthrun: perldoc perlsyn
Korthrunthanks
revdiabloCbro: Let me try on my system, the way I showed you to open may have been wrong
f00li5hKorthrun: they're just postfixed versions, so i'd presume they'd be with their non-prefixed versions
Cbrorevdiablo: thanks
f00li5hi guess -f... but i'm not sure
DrCherryrevdiablo, mistakes?! how is this possible!?!?! I mean are we helping or "helping" here?
eriderCbro: this maybe an issue on a windows machine: S:/TEMP_DEFECTED.csv
Khisanthrevdiablo: I don't think :utf16 is correct, should probably be :encoding(utf16) :)
revdiabloerider: Nope, windows perl can handle that okay
eriderCbro: is it on your S drive
revdiabloDrCherry: Try Khisanth's suggestion
Err
Cbro: That was to you
DrCherryI'm sorry, I just get irritated when someone "helps" another with bad advice
revdiabloYeah, <:encoding(utf16) is working for me

Page: 2 9 16 23 30 37 44 51 58 65 72 79 86 

IrcArchive