use 5.010; my(@arr_a)=qw (123 abc def ghi); my(@arr_b)=qw (123 abc def ghi); print "same2same\n" if (@arr_a ~~ @arr_b);
Tuesday, September 25, 2012
Perl smart match operator
Many times, it is very handy to use this operator for comparing arrays, hashes:
Tuesday, September 18, 2012
How to setup yum in RHEL 6.0
[root@localhost ~]# cat /etc/yum.repos.d/iso1.repo <-- this name can be anything but in the format *.repo
[iso1.repo]
name=RHEL6
baseurl=ftp://<servername>/<path where repodata directory is available> < ---- [ it means 'repodata' dir should be available in this path ]
enabled=1
gpgcheck=0
==============================================================
Above procedure should be same for other OS.
[root@localhost ~]# cat /etc/yum.repos.d/iso1.repo <-- this name can be anything but in the format *.repo
[iso1.repo]
name=RHEL6
baseurl=ftp://<servername>/<path where repodata directory is available> < ---- [ it means 'repodata' dir should be available in this path ]
enabled=1
gpgcheck=0
==============================================================
Above procedure should be same for other OS.
Subscribe to:
Posts (Atom)