Red Hat / Fedora :: Elements Of Structure Perl Language
Aug 9, 2010What elements of the Perl language could you use to structure your code to allow for maximum re-use and maximum readability?
View 2 RepliesWhat elements of the Perl language could you use to structure your code to allow for maximum re-use and maximum readability?
View 2 Repliescreated this array and the last two elements will not pop - phil and sylvia never get up to bat.
1#!/usr/bin/perl
2use strict;
3use warnings;
[code]...
For Perl I need to understand a few things. It's unlikely that anyone will be able to give me direct answers but if they could point outI'm trying to hack down an existing script http://eoylpac.org/source/eoy.pl. What I need to be able to do (in a nut shell):1. Open a database2. Read the values for each uniq id and execute a subroutine for each of those values. (The subroutine already exists in the above file 'do_pdf').
View 5 Replies View RelatedI have .txt.gz files that store queries made on a browser, d my job is to analyze them.The information is stored in a xml-like style.Quote:
<browser>lwp-trivial/1.41</browser>
<http_code>200</http_code>
<keywords />
[code]...
Does anyone know of a C Language Data Structure Tutorial? I have not been able to find anything much to speak of myself.
View 4 Replies View RelatedI have installed the Ubuntu distro first in Portuguese. Then, I decided I wanted the English language. I would like that the default folders like "Desktop" and "Documents" were renamed to this names, instead of staying in their Portuguese equivalent.
I can not guarantee this, but I am almost certain I did successfully convert the folder names from Portuguese to English on a previous install when I decided to change the language. So, I suppose this is possible.
When I boot the fedora system,disable the plymouth,the language of booting message showed is english.Can it change to other language,chinese?
View 2 Replies View RelatedI am trying to setup the wlan access for my Fedora 9 system. I installed ndiswrapper. But when I run
Code:
ndiswrapper -l
i am getting the error
Code:
/usr/bin/perl: symbol lookup error: /usr/bin/perl: undefined symbol: PL_use_safe_putenv
I have some music in another language, but when I open the songs in Banshee, their song names just come up as weird characters (like μ).I went to [System --> Administration --> Language Support] and installed support for that language, but the songs still come up like μ. (But in Nautilus, their proper names show).
I know the solution is to change my whole system language to that language, but I don't want to do that, as I am not very fluent in it. Is there any way to enable support for that language while keeping English as the language used to display my desktop?
One computer .... three users .... three languages. How do you make that happen? User A speaks English and is happy with English. No problem. User B needs to use Chinese and would like the full system in Chinese. User C needs to use Thai and Chinese. They would prefer their menus to be in Thai and can use iBus for Chinese entry. How do you set up the system so that each user can select their system language when they login?
View 4 Replies View Relatedis there some way to change keyboard language to specific language by hotkey?
For example:
Shift+Alt+1 - English
Shift+Alt+2 - Russian
Shift+Alt+3 - Ukrainian
While installing Ubuntu 10.10 I chose the wrong language for my keyboard. I tried to fix this in keyboard preferences and it seemed to work. The correct one I need is USA (and don't know exactly the difference between USA and USA alternative international). But every time I boot my laptop I get the old language back (Dutch) while USA is above the others in my preferences.
View 1 Replies View Relatedi recently got a french msi wind U100x running on linux suse enterprise 10 sp1. (i am french and wanted a light netbook with french keyboard)i am totally new to linux and i believe that msi wind is not helping.because i am more used to english for settings, i set the main language to english, but it seems that it automatically reconfigures my keyboard mapping to english as well, so that azerty becomes qwerty.i reset it back to french, so now my keyboard is french, but so is the system.is there a way to differentiate keyboard from main user setting language?
View 3 Replies View Relatedtrying to learn how to do tasks via command structure as I want to become RHCSA in the future.problem: i am trying to copy from (Ubuntu) a driver folder from a CD to another partition so that I can access the internet on CentOS .( which is the OS on another partition on my HD)
View 4 Replies View RelatedI am using GTKPOD to add music and sync my Ipod touch. I have gtkpod up and running and I have gone through the initial steps of changing the repo and selecting my ipod touch. But now when I try to "load ipod" i am receiving an error stating that the IPOD directory structure not found.
I have changed the repo so that is ipod mount point: /mnt
But after selecting load ipod;
Could not find iPod directory structure at '/mnt'.
If you are sure that the iPod is properly mounted at '/mnt', it may not be initialized for use. In this case, gtkpod can initialize it for you.
Do you want to create the directory structure now? >>>Create Directory Structure
Following this message; Warning
The following has occured:
Error initialising iPod: Problem creating iPod
How do i create the iPod Directory Structure that it is asking for?
I have two computers, a HP DX2250 with dual SATA drives and a HP D530 with 1 EIDE drive and 1 SATA drive. On each computer Windows XP Pro is installed on the first drive and Fedora is installed on the second drive. I have had no problems installing and running Fedora 15 on the the DX2250.
My persistent problem lies with the D530. I have installed Fedora 15 on the SATA drive several times. I used the Fedora live cd and I have used PreUpgrade. Every install results in the Error 16: message occurring during boot and ending with a Grub prompt. I have even unplugged the EIDE drive during Fedora boot and still get the problem. I might also add: the machine hard drive boot is controlled via F10 and changing the drive controller order. I have installed and used Fedora on both machines from Fedora 11 thru Fedora 14 with no problems. This error is new with Fedora 15. My next attempt is to install Fedora 15 on the SATA drive with the EIDE drive unplugged. All ideas or SWAG guesses are welcome.
[Code]...
I have a file that has been created by exiftools and then parsed and cut to fit my needs and thrown into a file that looks like this:
Code:
I then make the file executable and then execute it. Trouble is, the destination directories don't actually exist, so naturally, the "ln -s" fails.
Is there a way to create the destination directories dynamically based on what is specified in the file above?
I need to recreate in a local folder called /distro/fedora/ the full directory tree (including eventually hidden files, symlinks, etc.) contained in the .iso file just downloaded (Fedora-15-i686-Live-Desktop.iso).
I understand I can mount the ISO image using something like this:
mount -ro loop /path/to/image.iso /mnt
but then, which would be the best way to get a copy exact of what I see underneath /mnt in to /distro/fedora ?
cp, tar, clobber?
I am new here and want to lern CentOS. Current I have installed CentOS 5.5 x64 and Perl 5.8.8. Now i have install Perl 5.12.1 which located to /usr/local/bin/perl. But how I can move it to /usr/bin/perl so root based on Perl 5.12.1?
View 7 Replies View RelatedI have searched all over. I cannot find any info on the description of the Fedora mirror release directory structure and the reason for having a "Fedora" and "Everything" directory? Yes I looked at [URL] I mostly work with the Red Hat 5.x. The Fedora release software is kept on a mirror and the DVD release as, (using i386 release):
[Code]....
I am trying to launch the perl config, but when I do so I can an weird error.It seems to be that it does not regonize perl ?
conf.pl: line 11: =: command not found
conf.pl: line 19: my: command not found
conf.pl: line 20: syntax error near unexpected token `{'
[code]...
I recently reinstalled the B module for perl. Now I found out it didn't just do that, it installed a whole new copy of perl into /usr/local/bin/perl. When I type 'which perl' at the terminal, it says '/usr/local/bin/perl' instead of '/usr/bin/perl'. Normally, this wouldn't bother me. But I installed the one in local/bin without threading support. The one that comes with the system already is build with threading support, which is why I want to switch back to the system perl, and possibly remove the one in /usr/local/bin.
So how do I change it so that the result of 'which perl' returns as '/usr/bin/perl'? And what do I have to do to remove /usr/local/bin/perl?
The reason I need threading support is because I'm designing a file copier that copies several chunks of a file simultaneously to speed up the copying process. Guaranteed a useful script if it works.
I'm new in perl programming and linux OS. What is the difference between perl and perl-devel? What does mean devel? Iwant to install Catalyst and before install as required I have to check if make, gcc and perl-devel are installed in my system. make and gcc are installed. But I have to install perl-devel. First I searched for make, gcc and perl-devel in YAST Software Management and search did not find perl-devel. I visited the software.opensuse.org and wrote "perl-devel" and searched. The result was many similar zips with a prefix perl-devel and I can not choose one for needed perl-devel.
[Code]...
i am trying to use greek as well, besides english, but my keyboard doesn't want to. i have visited the directory /usr/share/x11/xkb/symbols, where i can see that there is a file called gr, which most likely is for greek, but i don't know what to do with it.
View 2 Replies View RelatedI've just installed Fedora 11 on my Toshiba laptop, which previously was set up with OpenSuSE 11.1.On OpenSuSE I had my user account set up in English, and my girlfriend's set up in Spanish, her native tongue.I went into her account in Fedora, and under changed "language" under Administrative settings but that seems to have changed the language for my account too.Is there a way to change hers to Spanish, and keep mine in English?
View 3 Replies View RelatedI have 2 user account created on my system and I want have a different language per each user created. I activated (and added) second support lang but this is system wide and not per user modify. I thought tha selection being possible on logon screen but is not. Any ideas?
View 3 Replies View RelatedHow do I change language on Fedora 14?
View 14 Replies View Relatedhow to do i switch my system language?
View 2 Replies View RelatedI would like to C Language in RHEL-4?How should I start
View 3 Replies View RelatedI cannot reduce the size of all icons, context menu items etc.For example, I need to do some minor programming for the university. And this is how Eclipse Aptana RadRails look on a netbook: [URL] UI takes up to 70% of screen space, and the IDE is barely usable now. On Windows it looks like [URL] I tried some gnome themes but they all are of the same size. Is there any way how I can reduce the size at least for the whole system (nautilus etc)? If there is a way how I can apply 'nanoized' theming for desired applications only.
View 4 Replies View Related