| axscode | nice then :) |
| bultom | just like i wanted :) |
| stuuf | my map/split version put an Hz at the end of every one |
| bultom | but i really would like use only internal Perl fonction , without adding cpan addon |
| stuuf | maybe there was an extra space at the end of the file |
| bultom | is it possible to do so ? |
| axscode | yes |
| stuuf | just read from the file yourself |
| bultom | the file is a /sys call :P it give a line |
| stuuf | it's still a file |
| axscode | my $fs = `cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies`; $fs =~ s/ / Hz\n/g; print $fs ; |
| stuuf | open my $freq, '<', "/sys/devices/system/cpu/cpu$cpu/cpufreq/scaling_available_frequencies"; print map { "$_ Hz" } split / /, <$freq>; close $freq; |
| bultom | uhu that's a bit complicated for my newbish behaviour :D |
| axscode | we dont know whats "uhu" |
| stuuf | what, reading a file? |
| bultom | uhu = WOW O_O |
| axscode | ahaaa.. lol |
| bultom | stuuf since i just put all that in a variable and call the variable later i dunno really manipulating oping and reading files atm |
| stuuf | reading the file with perl is bettter than calling cat to do it |
| axscode | i aggree. |
| bultom | well i founded 'system' gaster in perl doc :P faster* |
| zach | how can i get rexex to identify color codes in mIRC..ya know when you copy and paste mIRC convos with color/bold/underline..into something like notepad for example regex* |
| stuuf | it's just a file, there's no reason to create extra processes to read it |
| bultom | open my $blah, '<' /egegte/egegre/egege mean store what is in /egegte/egegre/egege in $blah ? |
| stuuf | it stores a file handle in $blah you can read lines from it with <$blah> perldoc perlopentut |
| bultom | oh great gonna read that now (you know i start coding perl in train xD) and what does "print map" ? |